aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-09-27 08:54:31 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-09-27 08:54:31 +0000
commit7974f4752b9b4e2bc59f8e611737ff59889867b4 (patch)
tree28bda8061df54463f017dde1db97334e146f5975
parentcd1f2d7b0ed7a25ff1c298732f921ce6d6d86f73 (diff)
downloadrails-7974f4752b9b4e2bc59f8e611737ff59889867b4.tar.gz
rails-7974f4752b9b4e2bc59f8e611737ff59889867b4.tar.bz2
rails-7974f4752b9b4e2bc59f8e611737ff59889867b4.zip
Mark Duration test failing with Ruby 1.9
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7648 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--activesupport/test/core_ext/duration_test.rb5
1 files changed, 3 insertions, 2 deletions
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