summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-27 15:41:12 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-27 15:41:12 +0000
commit53369d7e4dab675ede11b584ffc003e51ea62672 (patch)
tree9f26ace0fb018dba16d2ed28ad69627c292e34b6 /test
parent2d17694de73433900c92e8c9bec854c9e52b5ac3 (diff)
* vm_method.c: revert r55869. it breaks Integer#days with
ActiveSupport-4.1.x. [ruby-core:76949] [Bug #12353] * test/ruby/test_marshal.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@56022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_marshal.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/test/ruby/test_marshal.rb b/test/ruby/test_marshal.rb
index 38e03ac57b..e2e321bb41 100644
--- a/test/ruby/test_marshal.rb
+++ b/test/ruby/test_marshal.rb
@@ -736,24 +736,4 @@ class TestMarshal < Test::Unit::TestCase
end
RUBY
end
-
- MethodMissingWithoutRespondTo = Struct.new(:wrapped_object) do
- undef respond_to?
- def method_missing(*args, &block)
- wrapped_object.public_send(*args, &block)
- end
- def respond_to_missing?(name, private = false)
- wrapped_object.respond_to?(name, false)
- end
- end
-
- def test_method_missing_without_respond_to
- bug12353 = "[ruby-core:75377] [Bug #12353]: try method_missing if" \
- " respond_to? is undefined"
- obj = MethodMissingWithoutRespondTo.new("foo")
- dump = assert_nothing_raised(NoMethodError, bug12353) do
- Marshal.dump(obj)
- end
- assert_equal(obj, Marshal.load(dump))
- end
end