You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 30, 2024. It is now read-only.
Use Case:
We have a custom formatter that we use with `parallel_tests` to get a cleaner output from the various test processes.
We make use of `RSpec::Core::Formatters::Helpers.pluralize` in there to display the number of remaining processes left.
However, instead of getting "processes", we get "processs".
Looking into the `pluralize` method definition, it simple adds an "s" to the end of the provided String, unless the count is equal to 1.
Without accounting for all the different words that are possible, which something like Rails would do, we just extended this to add "es" if the provided String ends in "s" already.
We also added tests for words that end in "s" and words that do not end in "s".
0 commit comments