diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-15 02:27:41 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-15 02:27:41 +0000 |
commit | 887870f20c347179aef0545ee2019c02ed9f74d1 (patch) | |
tree | d93605ee6317bb1a427477c363ddc7a6ee67db0f /activesupport/test | |
parent | bb152cd8ca2502c4b426a46fa9d86d9cff68d0cb (diff) | |
download | rails-887870f20c347179aef0545ee2019c02ed9f74d1.tar.gz rails-887870f20c347179aef0545ee2019c02ed9f74d1.tar.bz2 rails-887870f20c347179aef0545ee2019c02ed9f74d1.zip |
Ruby 1.9 compat: define Duration#== [chuyeow]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8399 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/core_ext/duration_test.rb | 1 | ||||
-rw-r--r-- | activesupport/test/core_ext/numeric_ext_test.rb | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/activesupport/test/core_ext/duration_test.rb b/activesupport/test/core_ext/duration_test.rb index 594252d581..125232bd40 100644 --- a/activesupport/test/core_ext/duration_test.rb +++ b/activesupport/test/core_ext/duration_test.rb @@ -15,7 +15,6 @@ class DurationTest < Test::Unit::TestCase 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 diff --git a/activesupport/test/core_ext/numeric_ext_test.rb b/activesupport/test/core_ext/numeric_ext_test.rb index 321f8165f4..a773339b29 100644 --- a/activesupport/test/core_ext/numeric_ext_test.rb +++ b/activesupport/test/core_ext/numeric_ext_test.rb @@ -13,7 +13,6 @@ class NumericExtTimeAndDateTimeTest < Test::Unit::TestCase } end - # FIXME: ruby 1.9 def test_units @seconds.each do |actual, expected| assert_equal expected, actual |