aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/time_ext_test.rb
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2017-09-16 19:06:45 +0300
committerbogdanvlviv <bogdanvlviv@gmail.com>2017-10-24 21:17:54 +0300
commitee9d81837b5eba9d5ec869ae7601d7ffce763e3e (patch)
treedcb28197ee2c901788ae4431bb136e0994e3d209 /activesupport/test/core_ext/time_ext_test.rb
parentf2c1e3a793570584d9708aaee387214bc3543530 (diff)
downloadrails-ee9d81837b5eba9d5ec869ae7601d7ffce763e3e.tar.gz
rails-ee9d81837b5eba9d5ec869ae7601d7ffce763e3e.tar.bz2
rails-ee9d81837b5eba9d5ec869ae7601d7ffce763e3e.zip
Allows pass argument for `Time#prev_year` and `Time#next_year`.
Diffstat (limited to 'activesupport/test/core_ext/time_ext_test.rb')
-rw-r--r--activesupport/test/core_ext/time_ext_test.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/activesupport/test/core_ext/time_ext_test.rb b/activesupport/test/core_ext/time_ext_test.rb
index b720e32022..8cb17df01b 100644
--- a/activesupport/test/core_ext/time_ext_test.rb
+++ b/activesupport/test/core_ext/time_ext_test.rb
@@ -178,10 +178,6 @@ class TimeExtCalculationsTest < ActiveSupport::TestCase
assert_equal Time.local(2005, 2, 4, 19, 30, 59, Rational(999999999, 1000)), Time.local(2005, 2, 4, 19, 30, 10).end_of_minute
end
- def test_last_year
- assert_equal Time.local(2004, 6, 5, 10), Time.local(2005, 6, 5, 10, 0, 0).last_year
- end
-
def test_ago
assert_equal Time.local(2005, 2, 22, 10, 10, 9), Time.local(2005, 2, 22, 10, 10, 10).ago(1)
assert_equal Time.local(2005, 2, 22, 9, 10, 10), Time.local(2005, 2, 22, 10, 10, 10).ago(3600)