diff options
author | Prakash Murthy <prakblr@yahoo.com> | 2011-05-21 02:19:52 -0700 |
---|---|---|
committer | Prakash Murthy <prakblr@yahoo.com> | 2011-05-21 02:19:52 -0700 |
commit | 6b0dc80adc18e999302a30cd89dd001ad4708f41 (patch) | |
tree | 5eb98f9b1d211004fa7e49f7c300fda5a7e12d79 | |
parent | d62a39a22b7ad56efa79089177aa06fda0d41f86 (diff) | |
download | rails-6b0dc80adc18e999302a30cd89dd001ad4708f41.tar.gz rails-6b0dc80adc18e999302a30cd89dd001ad4708f41.tar.bz2 rails-6b0dc80adc18e999302a30cd89dd001ad4708f41.zip |
Check for Module.new.dup as well in https://github.com/rails/rails/blob/master/activesupport/lib/active_support/core_ext/object/duplicable.rb
-rw-r--r-- | activesupport/test/core_ext/duplicable_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/duplicable_test.rb b/activesupport/test/core_ext/duplicable_test.rb index 6e1f876959..77d0e86b78 100644 --- a/activesupport/test/core_ext/duplicable_test.rb +++ b/activesupport/test/core_ext/duplicable_test.rb @@ -3,7 +3,7 @@ require 'bigdecimal' require 'active_support/core_ext/object/duplicable' class DuplicableTest < Test::Unit::TestCase - NO = [nil, false, true, :symbol, 1, 2.3, BigDecimal.new('4.56'), Class.new] + NO = [nil, false, true, :symbol, 1, 2.3, BigDecimal.new('4.56'), Class.new, Module.new] YES = ['1', Object.new, /foo/, [], {}, Time.now] def test_duplicable |