aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/object
diff options
context:
space:
mode:
authorPeter Jaros <peter.a.jaros@gmail.com>2014-09-03 16:00:06 -0400
committerPeter Jaros <peter.a.jaros@gmail.com>2014-09-03 16:09:15 -0400
commitfdc5e768ca29e3ad4288dcd8a8c7147cea8a1f97 (patch)
tree88508567e7a92ebebb516877a74d0062be5c8bb0 /activesupport/test/core_ext/object
parent66c9d31c2b9a58db03668fb0840669e4d4374123 (diff)
downloadrails-fdc5e768ca29e3ad4288dcd8a8c7147cea8a1f97.tar.gz
rails-fdc5e768ca29e3ad4288dcd8a8c7147cea8a1f97.tar.bz2
rails-fdc5e768ca29e3ad4288dcd8a8c7147cea8a1f97.zip
Methods are not duplicable.
Diffstat (limited to 'activesupport/test/core_ext/object')
-rw-r--r--activesupport/test/core_ext/object/duplicable_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/object/duplicable_test.rb b/activesupport/test/core_ext/object/duplicable_test.rb
index 84512380cf..34679cb362 100644
--- a/activesupport/test/core_ext/object/duplicable_test.rb
+++ b/activesupport/test/core_ext/object/duplicable_test.rb
@@ -4,7 +4,7 @@ require 'active_support/core_ext/object/duplicable'
require 'active_support/core_ext/numeric/time'
class DuplicableTest < ActiveSupport::TestCase
- RAISE_DUP = [nil, false, true, :symbol, 1, 2.3, 5.seconds]
+ RAISE_DUP = [nil, false, true, :symbol, 1, 2.3, 5.seconds, method(:puts)]
ALLOW_DUP = ['1', Object.new, /foo/, [], {}, Time.now, Class.new, Module.new]
# Needed to support Ruby 1.9.x, as it doesn't allow dup on BigDecimal, instead