Skip to content

Commit

Permalink
Improve test coverage of Duration. Closes #7182 [richcollins]
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6007 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
NZKoz committed Jan 21, 2007
1 parent 704f2cc commit 5941861
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions activesupport/test/core_ext/duration_test.rb
Expand Up @@ -14,4 +14,8 @@ def test_inspect
def test_minus_with_duration_does_not_break_subtraction_of_date_from_date
assert_nothing_raised { Date.today - Date.today }
end

def test_plus_with_time
assert_equal 1 + 1.second, 1.second + 1, "Duration + Numeric should == Numeric + Duration"
end
end

0 comments on commit 5941861

Please sign in to comment.