Guest User

Untitled

a guest
Feb 19th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. diff --git a/test/testYAML.rb b/test/testYAML.rb
  2. index bd5ab20..cd5923d 100644
  3. --- a/test/testYAML.rb
  4. +++ b/test/testYAML.rb
  5. @@ -53,7 +53,7 @@ test_ok(["--- !ruby/object:TestBean \nvalue: 13\nkey: 42\n",
  6. test_equal(TestBean.new(13,42),YAML.load("--- !ruby/object:TestBean \nvalue: 13\nkey: 42\n"))
  7.  
  8. TestStruct = Struct.new(:foo,:bar)
  9. -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))
  10. +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))
  11. test_equal("--- !ruby/exception:StandardError \nmessage: foobar\n", StandardError.new("foobar").to_yaml)
  12.  
  13. test_equal("--- :foo\n", :foo.to_yaml)
Add Comment
Please, Sign In to add comment