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 failing spec due to symbol_position defaults #1078

Closed
wants to merge 1 commit into from

Conversation

tagliala
Copy link
Contributor

@tagliala tagliala commented Mar 4, 2024

Address the unexpected behavior where symbol_position: :before has a different default compared to symbol_position: :after. The latter defaults to adding a space, which is expected based on the implementation in determine_format_from_formatting_rules.

This commit does not alter the current behavior but fixes the failing spec to reflect the correct default behavior as per the implementation. Changing the default would introduce breaking changes, thus this commit only aims to make the spec pass.

Note: Further investigation into the different default behaviors for :before and :after should be tracked in a separate issue.

Fix #1075

Address the unexpected behavior where `symbol_position: :before` has a
different default compared to `symbol_position: :after`. The latter
defaults to adding a space, which is expected based on the
implementation in `determine_format_from_formatting_rules`.

This commit does not alter the current behavior but fixes the failing
spec to reflect the correct default behavior as per the implementation.
Changing the default would introduce breaking changes, thus this commit
only aims to make the spec pass.

Note: Further investigation into the different default behaviors for
`:before` and `:after` should be tracked in a separate issue.

Fix RubyMoney#1075
@tagliala
Copy link
Contributor Author

tagliala commented Mar 6, 2024

No longer needed

@tagliala tagliala closed this Mar 6, 2024
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.

CI is failing
1 participant