Skip to content

Commit

Permalink
Mark Duration test failing with Ruby 1.9
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7648 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
jeremy committed Sep 27, 2007
1 parent cd1f2d7 commit 7974f47
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions activesupport/test/core_ext/duration_test.rb
Expand Up @@ -10,11 +10,12 @@ def test_inspect
assert_equal '7 days', 1.week.inspect assert_equal '7 days', 1.week.inspect
assert_equal '14 days', 1.fortnight.inspect assert_equal '14 days', 1.fortnight.inspect
end end

def test_minus_with_duration_does_not_break_subtraction_of_date_from_date def test_minus_with_duration_does_not_break_subtraction_of_date_from_date
assert_nothing_raised { Date.today - Date.today } assert_nothing_raised { Date.today - Date.today }
end end


# FIXME: ruby 1.9
def test_plus_with_time def test_plus_with_time
assert_equal 1 + 1.second, 1.second + 1, "Duration + Numeric should == Numeric + Duration" assert_equal 1 + 1.second, 1.second + 1, "Duration + Numeric should == Numeric + Duration"
end end
Expand Down

0 comments on commit 7974f47

Please sign in to comment.