aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorAndrew White <pixeltrix@users.noreply.github.com>2017-03-03 10:48:41 +0000
committerGitHub <noreply@github.com>2017-03-03 10:48:41 +0000
commitc9bc4de19850ce3e66d0bf1f9ef70468c0366670 (patch)
treed6610b4eb96c4c69bb69a486c43d270ce1b46b82 /actionview
parente1a72fef7de9a5c0871b0ef1a4acb9483d2bf1f3 (diff)
parent75924c4517c8f87712d3f59c11f10152ed57b9d8 (diff)
downloadrails-c9bc4de19850ce3e66d0bf1f9ef70468c0366670.tar.gz
rails-c9bc4de19850ce3e66d0bf1f9ef70468c0366670.tar.bz2
rails-c9bc4de19850ce3e66d0bf1f9ef70468c0366670.zip
Merge pull request #28204 from rails/deprecate-implicit-coercion-of-durations
Deprecate implicit coercion of `ActiveSupport::Duration`
Diffstat (limited to 'actionview')
-rw-r--r--actionview/test/template/date_helper_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/test/template/date_helper_test.rb b/actionview/test/template/date_helper_test.rb
index bfd3ecd6fd..d257147e1f 100644
--- a/actionview/test/template/date_helper_test.rb
+++ b/actionview/test/template/date_helper_test.rb
@@ -832,7 +832,7 @@ class DateHelperTest < ActionView::TestCase
def test_select_date_with_too_big_range_between_start_year_and_end_year
assert_raise(ArgumentError) { select_date(Time.mktime(2003, 8, 16), start_year: 2000, end_year: 20000, prefix: "date[first]", order: [:month, :day, :year]) }
- assert_raise(ArgumentError) { select_date(Time.mktime(2003, 8, 16), start_year: Date.today.year - 100.years, end_year: 2000, prefix: "date[first]", order: [:month, :day, :year]) }
+ assert_raise(ArgumentError) { select_date(Time.mktime(2003, 8, 16), start_year: 100, end_year: 2000, prefix: "date[first]", order: [:month, :day, :year]) }
end
def test_select_date_can_have_more_then_1000_years_interval_if_forced_via_parameter