aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/fixnum_ext_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/test/core_ext/fixnum_ext_test.rb')
-rw-r--r--activesupport/test/core_ext/fixnum_ext_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/fixnum_ext_test.rb b/activesupport/test/core_ext/fixnum_ext_test.rb
index 7ffc32a9e1..66297fc378 100644
--- a/activesupport/test/core_ext/fixnum_ext_test.rb
+++ b/activesupport/test/core_ext/fixnum_ext_test.rb
@@ -26,4 +26,11 @@ class FixnumExtTest < Test::Unit::TestCase
assert !22953686867719691230002707821868552601124472329079.multiple_of?(5)
assert !22953686867719691230002707821868552601124472329079.multiple_of?(7)
end
+
+ def test_ordinalize
+ # These tests are mostly just to ensure that the ordinalize method exists
+ # It's results are tested comprehensively in the inflector test cases.
+ assert_equal '1st', 1.ordinalize
+ assert_equal '8th', 8.ordinalize
+ end
end