diff options
author | Marc-Andre Lafortune <[email protected]> | 2020-11-04 16:01:37 -0500 |
---|---|---|
committer | Marc-André Lafortune <[email protected]> | 2020-11-04 17:52:03 -0500 |
commit | 6f24be856502aba8fa984e704c1e81aa12d96fc9 (patch) | |
tree | 5f2db6abe2182123c7104ba85a33d9bdc7870daf /spec | |
parent | 9232f9182736eeb0f12df5884d7297bea0c9f6fd (diff) |
Revert "Make `marshal_load` public"
This reverts commit ee7cc6ac35cfb056b3946b1dcd6d4d5a140ccacf.
I'm not sure I agree with the spec, but I just tweaked it.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3736
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ruby/library/openstruct/marshal_load_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/library/openstruct/marshal_load_spec.rb b/spec/ruby/library/openstruct/marshal_load_spec.rb index e07c4cef05..342e5e68cd 100644 --- a/spec/ruby/library/openstruct/marshal_load_spec.rb +++ b/spec/ruby/library/openstruct/marshal_load_spec.rb @@ -4,7 +4,7 @@ require "ostruct" describe "OpenStruct#marshal_load when passed [Hash]" do it "defines methods based on the passed Hash" do os = OpenStruct.new - os.marshal_load(age: 20, name: "John") + os.send :marshal_load, age: 20, name: "John" os.age.should eql(20) os.name.should == "John" |