From b753b4a076d7067efccbd1ad384829f77e62a064 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Wed, 19 May 2010 00:20:10 +0200 Subject: removes deprecations of last_(month|year) from master, they will be deprecated in 2.3 instead --- activesupport/test/core_ext/date_ext_test.rb | 8 -------- activesupport/test/core_ext/time_ext_test.rb | 8 -------- 2 files changed, 16 deletions(-) (limited to 'activesupport/test/core_ext') diff --git a/activesupport/test/core_ext/date_ext_test.rb b/activesupport/test/core_ext/date_ext_test.rb index 1bf118e3b7..a3a2f13436 100644 --- a/activesupport/test/core_ext/date_ext_test.rb +++ b/activesupport/test/core_ext/date_ext_test.rb @@ -145,10 +145,6 @@ class DateExtCalculationsTest < ActiveSupport::TestCase assert_equal Date.new(2005,2,28), Date.new(2004,2,29).years_since(1) # 1 year since leap day end - def test_last_year_is_deprecated - assert_deprecated { Date.today.last_year } - end - def test_prev_year assert_equal Date.new(2004,6,5), Date.new(2005,6,5).prev_year end @@ -229,10 +225,6 @@ class DateExtCalculationsTest < ActiveSupport::TestCase assert_equal Date.new(2005, 9, 30), Date.new(2005, 8, 31).next_month end - def test_last_month_is_deprecated - assert_deprecated { Date.today.last_month } - end - def test_prev_month_on_31st assert_equal Date.new(2004, 2, 29), Date.new(2004, 3, 31).prev_month end 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 -- cgit v1.2.3