-
Please refer to the test noted here: pagy/test/pagy/i18n_locales_test.rb Line 30 in b226ae7 Here is a reproduction: it 'includes a comment with the pluralization rule and the i18n.rb reference' do
_(rules).must_include rule, message
# what does the message variable do?
# I had added the following random letters and the tests pass perfectly?
_(rules).must_include rule, "asdf asdf " # passes
end It seems like it should not pass? References: |
Beta Was this translation helpful? Give feedback.
Answered by
ddnexus
Oct 4, 2024
Replies: 1 comment
-
IIRC the In this case it provides custom feedback pointing to the file that failed. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
benkoshy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
IIRC the
message
is an optional/custom param that gets printed when the test fails. Changing it doesn't affect the outcome of the test, only its caption/description.In this case it provides custom feedback pointing to the file that failed.