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

Make the tests for uncountability of ascii and non-ascii words uniform #27520

Conversation

prathamesh-sonpatki
Copy link
Member

No description provided.

def test_pluralize_for_words_with_non_ascii_characters
ActiveSupport::Inflector.inflections do |inflect|
inflect.uncountable "猫"
%w{HTTP 猫}.each do |word|
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we keep them as two tests? I don't see the problem with duplication in tests, in fact I find it easier to run only one test when needed?

@prathamesh-sonpatki prathamesh-sonpatki force-pushed the merge-uncountable-tests-for-inflector branch from 1519620 to f07ea9f Compare December 31, 2016 04:21
@prathamesh-sonpatki
Copy link
Member Author

@rafaelfranca Updated!

@prathamesh-sonpatki prathamesh-sonpatki changed the title Merge the tests for ascii and non-ascii words for uncountability Make the tests for uncountability of ascii and non-ascii words uniform Dec 31, 2016
@prathamesh-sonpatki prathamesh-sonpatki force-pushed the merge-uncountable-tests-for-inflector branch from f07ea9f to 11b6f9e Compare December 31, 2016 04:22
@rafaelfranca rafaelfranca merged commit 3e8fa24 into rails:master Jan 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants