aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/test/core_ext')
-rw-r--r--activesupport/test/core_ext/duration_test.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/activesupport/test/core_ext/duration_test.rb b/activesupport/test/core_ext/duration_test.rb
index cc24d7c74c..ed267cf4b9 100644
--- a/activesupport/test/core_ext/duration_test.rb
+++ b/activesupport/test/core_ext/duration_test.rb
@@ -145,21 +145,6 @@ class DurationTest < ActiveSupport::TestCase
assert_equal '172800', 2.days.to_json
end
- def test_flatten
- a = 2.months
- b = (1.month + 1.month).flatten
-
- assert_equal a.parts, b.parts
- end
-
- def test_flatten!
- a = (1.month + 1.month)
- b = a.flatten
- a.flatten!
-
- assert_equal a.parts, b.parts
- end
-
protected
def with_env_tz(new_tz = 'US/Eastern')
old_tz, ENV['TZ'] = ENV['TZ'], new_tz