diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-11 22:06:05 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-11 22:06:05 +0000 |
commit | 1497522ab0b84f39a04774b4a6a86dea32aa9a3e (patch) | |
tree | 86a8908581bb23153c20f6c3026a0e0ecb95a405 /activesupport/test/core_ext/fixnum_ext_test.rb | |
parent | d44deadd3912ee44d12edfc4579ed58323e4c393 (diff) | |
download | rails-1497522ab0b84f39a04774b4a6a86dea32aa9a3e.tar.gz rails-1497522ab0b84f39a04774b4a6a86dea32aa9a3e.tar.bz2 rails-1497522ab0b84f39a04774b4a6a86dea32aa9a3e.zip |
Fixed the half applied 393 changeset
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@395 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test/core_ext/fixnum_ext_test.rb')
-rw-r--r-- | activesupport/test/core_ext/fixnum_ext_test.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/activesupport/test/core_ext/fixnum_ext_test.rb b/activesupport/test/core_ext/fixnum_ext_test.rb deleted file mode 100644 index 12ef69596d..0000000000 --- a/activesupport/test/core_ext/fixnum_ext_test.rb +++ /dev/null @@ -1,23 +0,0 @@ -require 'test/unit' -require File.dirname(__FILE__) + '/../../lib/core_ext/fixnum_ext' - -class FixnumExtTest < Test::Unit::TestCase - def setup - @now = Time.now - @seconds = { - 1.minute => 60, - 10.minutes => 600, - 1.hour + 15.minutes => 4500, - 2.days + 4.hours + 30.minutes => 189000, - 5.years + 1.month + 1.fortnight => 161481600 - } - end - - def test_time_units - @seconds.each do |actual, expected| - assert_equal expected, actual - assert_equal expected.since(@now), @now + actual - assert_equal expected.until(@now), @now - actual - end - end -end |