From 6b0dc80adc18e999302a30cd89dd001ad4708f41 Mon Sep 17 00:00:00 2001 From: Prakash Murthy Date: Sat, 21 May 2011 02:19:52 -0700 Subject: Check for Module.new.dup as well in https://github.com/rails/rails/blob/master/activesupport/lib/active_support/core_ext/object/duplicable.rb --- activesupport/test/core_ext/duplicable_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/test/core_ext/duplicable_test.rb') 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 -- cgit v1.2.3