aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/date_ext_test.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-06-16 18:27:20 +0900
committerGitHub <noreply@github.com>2019-06-16 18:27:20 +0900
commit6a033a06855f0b7a407ff8edbfc9f9aa45527edc (patch)
tree4f8c38b353e29c9e99cc1492d675da8fb1a8a39e /activesupport/test/core_ext/date_ext_test.rb
parentbf0570e8d71aaec991160e67c67ec34359344282 (diff)
parentbfecb7d3b6291f1b29ad71023a43c21480b53d55 (diff)
downloadrails-6a033a06855f0b7a407ff8edbfc9f9aa45527edc.tar.gz
rails-6a033a06855f0b7a407ff8edbfc9f9aa45527edc.tar.bz2
rails-6a033a06855f0b7a407ff8edbfc9f9aa45527edc.zip
Merge pull request #36497 from soartec-lab/move_date_and_time_method_to_time
Delete method definition in rails that is compatible with ruby definiā€¦
Diffstat (limited to 'activesupport/test/core_ext/date_ext_test.rb')
-rw-r--r--activesupport/test/core_ext/date_ext_test.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/activesupport/test/core_ext/date_ext_test.rb b/activesupport/test/core_ext/date_ext_test.rb
index b8652884ce..7060dd3c56 100644
--- a/activesupport/test/core_ext/date_ext_test.rb
+++ b/activesupport/test/core_ext/date_ext_test.rb
@@ -112,14 +112,6 @@ class DateExtCalculationsTest < ActiveSupport::TestCase
assert_equal Date.new(2005, 4, 30), Date.new(2005, 4, 20).end_of_month
end
- def test_prev_year_in_leap_years
- assert_equal Date.new(1999, 2, 28), Date.new(2000, 2, 29).prev_year
- end
-
- def test_prev_year_in_calendar_reform
- assert_equal Date.new(1582, 10, 4), Date.new(1583, 10, 14).prev_year
- end
-
def test_last_year_in_leap_years
assert_equal Date.new(1999, 2, 28), Date.new(2000, 2, 29).last_year
end
@@ -128,14 +120,6 @@ class DateExtCalculationsTest < ActiveSupport::TestCase
assert_equal Date.new(1582, 10, 4), Date.new(1583, 10, 14).last_year
end
- def test_next_year_in_leap_years
- assert_equal Date.new(2001, 2, 28), Date.new(2000, 2, 29).next_year
- end
-
- def test_next_year_in_calendar_reform
- assert_equal Date.new(1582, 10, 4), Date.new(1581, 10, 10).next_year
- end
-
def test_advance
assert_equal Date.new(2006, 2, 28), Date.new(2005, 2, 28).advance(years: 1)
assert_equal Date.new(2005, 6, 28), Date.new(2005, 2, 28).advance(months: 4)