diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-04 17:11:00 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-04 17:11:00 +0000 |
commit | 510cde74a6c5c810fb96980ac0d1a9d806d562c3 (patch) | |
tree | c096f197f8445e9f3e24af60978533e2a2c3bc9c /test/yaml/test_yaml.rb | |
parent | f6b75e30d8b7f1adfefc506fcb23768c2276fa32 (diff) | |
download | ruby-510cde74a6c5c810fb96980ac0d1a9d806d562c3.tar.gz |
* lib/yaml/rubytypes.rb: Struct members are emitted without a leading
colon. Thanks Yusuke Endoh! [ruby-core:28052]
* test/yaml/test_struct.rb: fixed tests to go with Struct changes
* test/yaml/test_yaml.rb: fixed tests to go with Struct changes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/yaml/test_yaml.rb')
-rw-r--r-- | test/yaml/test_yaml.rb | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/test/yaml/test_yaml.rb b/test/yaml/test_yaml.rb index 8c7aef3dcd..7274b602af 100644 --- a/test/yaml/test_yaml.rb +++ b/test/yaml/test_yaml.rb @@ -1082,27 +1082,27 @@ EOY book_struct.new( "This should be the ISBN", "but I have another struct here", 2002, "None" ) ) ], <<EOY - !ruby/struct:BookStruct - :author: Yukihiro Matsumoto - :title: Ruby in a Nutshell - :year: 2002 - :isbn: 0-596-00214-9 + author: Yukihiro Matsumoto + title: Ruby in a Nutshell + year: 2002 + isbn: 0-596-00214-9 - !ruby/struct:BookStruct - :author: + author: - Dave Thomas - Andy Hunt - :title: The Pickaxe - :year: 2002 - :isbn: !ruby/struct:BookStruct - :author: This should be the ISBN - :title: but I have another struct here - :year: 2002 - :isbn: None + title: The Pickaxe + year: 2002 + isbn: !ruby/struct:BookStruct + author: This should be the ISBN + title: but I have another struct here + year: 2002 + isbn: None EOY ) assert_to_yaml( YAML_Tests::StructTest.new( 123 ), <<EOY ) --- !ruby/struct:YAML_Tests::StructTest -:c: 123 +c: 123 EOY end |