diff options
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/core_ext/duration_test.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/duration_test.rb b/activesupport/test/core_ext/duration_test.rb index 78fc999052..22950d8710 100644 --- a/activesupport/test/core_ext/duration_test.rb +++ b/activesupport/test/core_ext/duration_test.rb @@ -10,4 +10,8 @@ class DurationTest < Test::Unit::TestCase assert_equal '7 days', 1.week.inspect assert_equal '14 days', 1.fortnight.inspect end -end
\ No newline at end of file + + def test_minus_with_duration_does_not_break_subtraction_of_date_from_date + assert_nothing_raised { Date.today - Date.today } + end +end |