Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/test/testYAML.rb b/test/testYAML.rb
- index bd5ab20..cd5923d 100644
- --- a/test/testYAML.rb
- +++ b/test/testYAML.rb
- @@ -53,7 +53,7 @@ test_ok(["--- !ruby/object:TestBean \nvalue: 13\nkey: 42\n",
- test_equal(TestBean.new(13,42),YAML.load("--- !ruby/object:TestBean \nvalue: 13\nkey: 42\n"))
- TestStruct = Struct.new(:foo,:bar)
- -test_ok(["--- !ruby/struct:TestStruct \nfoo: 13\nbar: 42\n","--- !ruby/struct:TestStruct\nbar: 42\nfoo: 13\n"].include?(TestStruct.new(13,42).to_yaml))
- +test_ok(["--- !ruby/struct:TestStruct \nfoo: 13\nbar: 42\n","--- !ruby/struct:TestStruct \nbar: 42\nfoo: 13\n"].include?(TestStruct.new(13,42).to_yaml))
- test_equal("--- !ruby/exception:StandardError \nmessage: foobar\n", StandardError.new("foobar").to_yaml)
- test_equal("--- :foo\n", :foo.to_yaml)
Add Comment
Please, Sign In to add comment