-
-
Notifications
You must be signed in to change notification settings - Fork 909
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: Indifference to I18n errors.format translation #1546
Conversation
Hello @HeitorMC, thanks for your PR. I'll take a look at how to do a test for this ASAP. Probably tomorrow or next week. |
Hey, @vsppedro any updates on this case? |
Hi @HeitorMC. Sorry for the delay in responding. We fake i18n in tests. You can see existing usage of this in the following shoulda-matchers/spec/unit/shoulda/matchers/active_model/allow_value_matcher_spec.rb Lines 417 to 441 in fababc3
It's a bit hard to see because of the indirection, but these tests verify that if shoulda-matchers/spec/support/unit/record_builder_with_i18n_validation_message.rb Line 38 in fababc3
So, I think in order to test your PR, you'd want to add a new shoulda-matchers/spec/unit/shoulda/matchers/active_model/allow_value_matcher_spec.rb Lines 70 to 71 in fababc3
I can suggest something a little more specific later, but let me know if that helps in the meantime. |
Fixes #1492
I didn't find anything related to internationalization tests 🤔, also both
spec/unit/shoulda/matchers/active_model/allow_value_matcher_spec.rb
andspec/unit/shoulda/matchers/active_model/validate_presence_of_matcher_spec.rb
passed without errors.@vsppedro @mcmire do you have any suggestions on how to test this case, or is this enough?