aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/numeric_ext_test.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-03-23 22:01:51 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-03-23 22:01:51 -0700
commite094940c2b5a5163504859efd3a0bcc49c40451e (patch)
tree999fba1608b264fb169da1e5682a5dba9208e29f /activesupport/test/core_ext/numeric_ext_test.rb
parent0bd668fd8867b01c15f943613707b3c7eb59afff (diff)
downloadrails-e094940c2b5a5163504859efd3a0bcc49c40451e.tar.gz
rails-e094940c2b5a5163504859efd3a0bcc49c40451e.tar.bz2
rails-e094940c2b5a5163504859efd3a0bcc49c40451e.zip
Move Numeric#to_utc_offset_s to TimeZone.seconds_to_utc_offset
Diffstat (limited to 'activesupport/test/core_ext/numeric_ext_test.rb')
-rw-r--r--activesupport/test/core_ext/numeric_ext_test.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/activesupport/test/core_ext/numeric_ext_test.rb b/activesupport/test/core_ext/numeric_ext_test.rb
index 5401ed7c7e..1beb038d56 100644
--- a/activesupport/test/core_ext/numeric_ext_test.rb
+++ b/activesupport/test/core_ext/numeric_ext_test.rb
@@ -145,18 +145,3 @@ class NumericExtSizeTest < Test::Unit::TestCase
assert_equal 3458764513820540928, 3.exabyte
end
end
-
-class NumericExtConversionsTest < Test::Unit::TestCase
-
- def test_to_utc_offset_s_with_colon
- assert_equal "-06:00", -21_600.to_utc_offset_s
- assert_equal "+00:00", 0.to_utc_offset_s
- assert_equal "+05:00", 18_000.to_utc_offset_s
- end
-
- def test_to_utc_offset_s_without_colon
- assert_equal "-0600", -21_600.to_utc_offset_s(false)
- assert_equal "+0000", 0.to_utc_offset_s(false)
- assert_equal "+0500", 18_000.to_utc_offset_s(false)
- end
-end