Class I18nSimpleBackendPluralizeTest
In: vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/simple_backend_test.rb
Parent: Test::Unit::TestCase

Methods

Included Modules

I18nSimpleBackendTestSetup

Public Instance methods

[Source]

     # File vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/simple_backend_test.rb, line 231
231:   def test_interpolate_given_incomplete_pluralization_data_raises_invalid_pluralization_data
232:     assert_raise(I18n::InvalidPluralizationData){ @backend.send(:pluralize, nil, {:one => 'bar'}, 2) }
233:   end

[Source]

     # File vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/simple_backend_test.rb, line 215
215:   def test_pluralize_given_0_returns_plural_string_if_no_zero_key_given
216:     assert_equal 'bars', @backend.send(:pluralize, nil, {:one => 'bar', :other => 'bars'}, 0)
217:   end

[Source]

     # File vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/simple_backend_test.rb, line 211
211:   def test_pluralize_given_0_returns_zero_string_if_zero_key_given
212:     assert_equal 'zero', @backend.send(:pluralize, nil, {:zero => 'zero', :one => 'bar', :other => 'bars'}, 0)
213:   end

[Source]

     # File vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/simple_backend_test.rb, line 219
219:   def test_pluralize_given_1_returns_singular_string
220:     assert_equal 'bar', @backend.send(:pluralize, nil, {:one => 'bar', :other => 'bars'}, 1)
221:   end

[Source]

     # File vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/simple_backend_test.rb, line 223
223:   def test_pluralize_given_2_returns_plural_string
224:     assert_equal 'bars', @backend.send(:pluralize, nil, {:one => 'bar', :other => 'bars'}, 2)
225:   end

[Source]

     # File vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/simple_backend_test.rb, line 227
227:   def test_pluralize_given_3_returns_plural_string
228:     assert_equal 'bars', @backend.send(:pluralize, nil, {:one => 'bar', :other => 'bars'}, 3)
229:   end

[Source]

     # File vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/simple_backend_test.rb, line 206
206:   def test_pluralize_given_nil_returns_the_given_entry
207:     entry = {:one => 'bar', :other => 'bars'}
208:     assert_equal entry, @backend.send(:pluralize, nil, entry, nil)
209:   end

[Validate]