module Capybara::Helpers

def declension(singular, plural, count)

Parameters:
  • count (Integer) -- The number of items
  • plural (String) -- The plural form of the word
  • singular (String) -- The singular form of the word
def declension(singular, plural, count)
  count == 1 ? singular : plural
end