module RSpec::Core::Formatters::Helpers

def self.pluralize(count, string)

Returns:
  • (String) - pluralized word

Parameters:
  • string (String) -- word to be pluralized
  • count (Fixnum) -- number of objects

Other tags:
    Api: - private
def self.pluralize(count, string)
  "#{count} #{string}#{'s' unless count.to_f == 1}"
end