aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-07-14 19:26:08 +0900
committerGitHub <noreply@github.com>2019-07-14 19:26:08 +0900
commit4ded9b88d5d2160645f3a1fc65bcfdf2ed430c17 (patch)
treedcd5e8928c83ffbfffb5e415eb12a8e441570ce8 /activesupport/test
parent9fe5aa32a7c962e084117af94351061009cd350b (diff)
parent71476313e0f94b7887bcb7aad3956c0d62505f4c (diff)
downloadrails-4ded9b88d5d2160645f3a1fc65bcfdf2ed430c17.tar.gz
rails-4ded9b88d5d2160645f3a1fc65bcfdf2ed430c17.tar.bz2
rails-4ded9b88d5d2160645f3a1fc65bcfdf2ed430c17.zip
Merge pull request #36658 from Shopify/duplicable-changes
Remove dead code in duplicable.rb
Diffstat (limited to 'activesupport/test')
-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 c9af2cb624..a577c30c40 100644
--- a/activesupport/test/core_ext/object/duplicable_test.rb
+++ b/activesupport/test/core_ext/object/duplicable_test.rb
@@ -6,7 +6,7 @@ require "active_support/core_ext/object/duplicable"
require "active_support/core_ext/numeric/time"
class DuplicableTest < ActiveSupport::TestCase
- RAISE_DUP = [method(:puts)]
+ RAISE_DUP = [method(:puts), method(:puts).unbind]
ALLOW_DUP = ["1", "symbol_from_string".to_sym, Object.new, /foo/, [], {}, Time.now, Class.new, Module.new, BigDecimal("4.56"), nil, false, true, 1, 2.3, Complex(1), Rational(1)]
def test_duplicable