Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecation warning when running specs #1079

Merged
merged 2 commits into from
Mar 13, 2024

Conversation

tagliala
Copy link
Contributor

@tagliala tagliala commented Mar 4, 2024

Also, raise_error better clarifies what is expected from specs and is also
shorter

  • ArgumentError and TypeError are errors
  • DifferentCurrencyError, UndefinedSmallestDenomination, and
    UnknownRate inherit from Error
  • UnknownCurrency inherits from ArgumentError

Close #1076


Requires #1078 to pass CI

@tagliala tagliala changed the title Fix deprecation warning Fix deprecation warning when running specs Mar 4, 2024
tagliala added 2 commits March 6, 2024 17:19
`raise_error` better clarifies what is expected from specs and is also
shorter

- `ArgumentError` and `TypeError` are errors
- `DifferentCurrencyError`, `UndefinedSmallestDenomination`, and
  `UnknownRate` inherit from `Error`
- `UnknownCurrency` inherits from `ArgumentError`
@tagliala tagliala force-pushed the chore/1076-fix-deprecation-warning branch from 2d99767 to 042c855 Compare March 6, 2024 16:19
@semmons99 semmons99 merged commit 0775030 into RubyMoney:main Mar 13, 2024
6 checks passed
@semmons99
Copy link
Member

ty

@tagliala tagliala deleted the chore/1076-fix-deprecation-warning branch March 13, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecation warning when running specs
2 participants