aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/time_ext_test.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-05-19 00:20:10 +0200
committerXavier Noria <fxn@hashref.com>2010-05-19 00:20:10 +0200
commitb753b4a076d7067efccbd1ad384829f77e62a064 (patch)
tree06a018d91b782a627a0ae9aa422326418e1ca771 /activesupport/test/core_ext/time_ext_test.rb
parent223d6415d045e670610603665c21e93b06a01db7 (diff)
downloadrails-b753b4a076d7067efccbd1ad384829f77e62a064.tar.gz
rails-b753b4a076d7067efccbd1ad384829f77e62a064.tar.bz2
rails-b753b4a076d7067efccbd1ad384829f77e62a064.zip
removes deprecations of last_(month|year) from master, they will be deprecated in 2.3 instead
Diffstat (limited to 'activesupport/test/core_ext/time_ext_test.rb')
-rw-r--r--activesupport/test/core_ext/time_ext_test.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/activesupport/test/core_ext/time_ext_test.rb b/activesupport/test/core_ext/time_ext_test.rb
index 30ee1d1652..1cf84df386 100644
--- a/activesupport/test/core_ext/time_ext_test.rb
+++ b/activesupport/test/core_ext/time_ext_test.rb
@@ -166,10 +166,6 @@ class TimeExtCalculationsTest < ActiveSupport::TestCase
# assert_equal Time.local(2182,6,5,10), Time.local(2005,6,5,10,0,0).years_since(177)
end
- def test_last_year_is_deprecated
- assert_deprecated { Time.now.last_year }
- end
-
def test_prev_year
assert_equal Time.local(2004,6,5,10), Time.local(2005,6,5,10,0,0).prev_year
end
@@ -619,10 +615,6 @@ class TimeExtCalculationsTest < ActiveSupport::TestCase
assert_equal Time.local(2005, 9, 30), Time.local(2005, 8, 31).next_month
end
- def test_last_month_is_deprecated
- assert_deprecated { Time.now.last_month }
- end
-
def test_prev_month_on_31st
assert_equal Time.local(2004, 2, 29), Time.local(2004, 3, 31).prev_month
end