summaryrefslogtreecommitdiff
path: root/spec/ruby/library/yaml
diff options
context:
space:
mode:
authorAndrew Konchin <[email protected]>2025-03-26 19:56:40 +0200
committerBenoit Daloze <[email protected]>2025-03-27 11:09:24 +0100
commitbac22c985ecc7e4309b5b5e5ae1074c81319e889 (patch)
tree5c164d3ed99240737205068f612d47496487758e /spec/ruby/library/yaml
parent53a930f1570c81d2f7829f932e8d7ad67e8462b8 (diff)
Update to ruby/spec@5e579e2
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12984
Diffstat (limited to 'spec/ruby/library/yaml')
-rw-r--r--spec/ruby/library/yaml/to_yaml_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/ruby/library/yaml/to_yaml_spec.rb b/spec/ruby/library/yaml/to_yaml_spec.rb
index 547009c942..08c5451416 100644
--- a/spec/ruby/library/yaml/to_yaml_spec.rb
+++ b/spec/ruby/library/yaml/to_yaml_spec.rb
@@ -65,6 +65,8 @@ describe "Object#to_yaml" do
it "returns the YAML representation of a Struct object" do
Person = Struct.new(:name, :gender)
Person.new("Jane", "female").to_yaml.should match_yaml("--- !ruby/struct:Person\nname: Jane\ngender: female\n")
+ ensure
+ Object.send(:remove_const, :Person)
end
it "returns the YAML representation of an unnamed Struct object" do