aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/date_ext_test.rb
diff options
context:
space:
mode:
authorBradley Buda <bradleybuda@gmail.com>2011-06-08 13:54:48 -0700
committerBradley Buda <bradleybuda@gmail.com>2011-06-08 13:54:48 -0700
commitdd3e7a6a349263e4f77736438b62d12c43c73ce3 (patch)
tree9699893ef1619d42b1e899edbcd5bcf8020054e7 /activesupport/test/core_ext/date_ext_test.rb
parent7d537b2106ab21a28e901e6e98c74df1f761243a (diff)
downloadrails-dd3e7a6a349263e4f77736438b62d12c43c73ce3.tar.gz
rails-dd3e7a6a349263e4f77736438b62d12c43c73ce3.tar.bz2
rails-dd3e7a6a349263e4f77736438b62d12c43c73ce3.zip
Allow a Date to be frozen more than once without an error in Ruby 1.8.x
Diffstat (limited to 'activesupport/test/core_ext/date_ext_test.rb')
-rw-r--r--activesupport/test/core_ext/date_ext_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/date_ext_test.rb b/activesupport/test/core_ext/date_ext_test.rb
index d81693209f..b4f848cd44 100644
--- a/activesupport/test/core_ext/date_ext_test.rb
+++ b/activesupport/test/core_ext/date_ext_test.rb
@@ -454,4 +454,10 @@ class DateExtBehaviorTest < Test::Unit::TestCase
Date.today.freeze.inspect
end
end
+
+ def test_can_freeze_twice
+ assert_nothing_raised do
+ Date.today.freeze.freeze
+ end
+ end
end