Sha256: 95e7dc259f315d47a65182665a84aa9e85fe015c6caebce2c66217581ae2bc9f

Contents?: true

Size: 302 Bytes

Versions: 16

Compression:

Stored size: 302 Bytes

Contents

module AcceptanceTests
  module PluralizationHelpers
    def pluralize(count, singular_version, plural_version = nil)
      plural_version ||= singular_version + 's'

      if count == 1
        "#{count} #{singular_version}"
      else
        "#{count} #{plural_version}"
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
shoulda-4.0.0 test/support/acceptance/helpers/pluralization_helpers.rb
shoulda-4.0.0.rc2 test/support/acceptance/helpers/pluralization_helpers.rb
shoulda-4.0.0.rc1 test/support/acceptance/helpers/pluralization_helpers.rb
shoulda-matchers-3.1.3 spec/support/acceptance/helpers/pluralization_helpers.rb
shoulda-matchers-4.0.0.rc1 spec/support/acceptance/helpers/pluralization_helpers.rb
shoulda-3.6.0 test/support/acceptance/helpers/pluralization_helpers.rb
shoulda-matchers-3.1.2 spec/support/acceptance/helpers/pluralization_helpers.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/shoulda-matchers-2.8.0/spec/support/acceptance/helpers/pluralization_helpers.rb
shoulda-matchers-3.1.1 spec/support/acceptance/helpers/pluralization_helpers.rb
shoulda-matchers-3.1.0 spec/support/acceptance/helpers/pluralization_helpers.rb
shoulda-matchers-3.0.1 spec/support/acceptance/helpers/pluralization_helpers.rb
shoulda-matchers-3.0.0 spec/support/acceptance/helpers/pluralization_helpers.rb
shoulda-matchers-3.0.0.rc1 spec/support/acceptance/helpers/pluralization_helpers.rb
shoulda-matchers-2.8.0 spec/support/acceptance/helpers/pluralization_helpers.rb
shoulda-matchers-2.8.0.rc2 spec/support/acceptance/helpers/pluralization_helpers.rb
shoulda-matchers-2.8.0.rc1 spec/support/acceptance/helpers/pluralization_helpers.rb