diff --git a/activesupport/test/core_ext/duration_test.rb b/activesupport/test/core_ext/duration_test.rb index 55b4df9f80..594252d581 100644 --- a/activesupport/test/core_ext/duration_test.rb +++ b/activesupport/test/core_ext/duration_test.rb @@ -10,11 +10,12 @@ class DurationTest < Test::Unit::TestCase assert_equal '7 days', 1.week.inspect assert_equal '14 days', 1.fortnight.inspect end - + def test_minus_with_duration_does_not_break_subtraction_of_date_from_date assert_nothing_raised { Date.today - Date.today } end - + + # FIXME: ruby 1.9 def test_plus_with_time assert_equal 1 + 1.second, 1.second + 1, "Duration + Numeric should == Numeric + Duration" end