-
-
Notifications
You must be signed in to change notification settings - Fork 390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extra specs for YAML output #1114
Conversation
This output differs from the named Struct objects by omitting the ":#{class}" part.
The spec that was described as "YAML of a Class object" actually tested an instance of a Class, update this description.
@@ -13,10 +13,18 @@ | |||
{ "a" => "b"}.to_yaml.should match_yaml("--- \na: b\n") | |||
end | |||
|
|||
it "returns the YAML representation of a Class object" do | |||
it "returns the YAML representation of an object" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -59,6 +67,11 @@ | |||
Person.new("Jane", "female").to_yaml.should match_yaml("--- !ruby/struct:Person\nname: Jane\ngender: female\n") | |||
end | |||
|
|||
it "returns the YAML representation of an unnamed Struct object" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it "returns the YAML representation of an unnamed Struct object" do | |
it "returns the YAML representation of an unnamed Struct subclass object" do |
Thank you! |
TBH I find spec titles in this file a bit misleading because a term "object" is used. As for me "instance" term is more correct. For instance in |
No description provided.