aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-02-04 18:38:26 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-02-04 18:46:19 +0530
commita470d796972749889a27e2070bbd95346bba45ea (patch)
tree44851f845d1a364fd2e1166757343316e41baecc /activesupport
parent6fa0190fe4c1bf9f8306198536306de883039a27 (diff)
downloadrails-a470d796972749889a27e2070bbd95346bba45ea.tar.gz
rails-a470d796972749889a27e2070bbd95346bba45ea.tar.bz2
rails-a470d796972749889a27e2070bbd95346bba45ea.zip
Document Integer#ordinal available in PR #2072.
Also remove an unasserted line in the tests.
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/CHANGELOG.md2
-rw-r--r--activesupport/test/core_ext/integer_ext_test.rb1
2 files changed, 2 insertions, 1 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md
index c929ae0ae5..29109ea64d 100644
--- a/activesupport/CHANGELOG.md
+++ b/activesupport/CHANGELOG.md
@@ -1,5 +1,7 @@
## Rails 4.0.0 (unreleased) ##
+* Adds Integer#ordinal to get the ordinal suffix string of an integer. *Tim Gildea*
+
* AS::Callbacks: `:per_key` option is no longer supported
* `AS::Callbacks#define_callbacks`: add `:skip_after_callbacks_if_terminated` option.
diff --git a/activesupport/test/core_ext/integer_ext_test.rb b/activesupport/test/core_ext/integer_ext_test.rb
index f01629f5c7..41736fb672 100644
--- a/activesupport/test/core_ext/integer_ext_test.rb
+++ b/activesupport/test/core_ext/integer_ext_test.rb
@@ -26,6 +26,5 @@ class IntegerExtTest < ActiveSupport::TestCase
def test_ordinal
assert_equal 'st', 1.ordinal
assert_equal 'th', 8.ordinal
- 1000000000000000000000000000000000000000000000000000000000000000000000.ordinal
end
end