diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-03-26 22:57:00 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-03-26 22:57:00 -0700 |
commit | a19b96529c9bce6f1fade726e6613f549f22dfad (patch) | |
tree | 38220994d567e07ebf1d5de28068ec2f1beefd4f | |
parent | c6b71d9412a18dc9910ff541b8afadbb62112fec (diff) | |
download | psych-a19b96529c9bce6f1fade726e6613f549f22dfad.zip |
* test/psych/test_struct.rb: fixing tests to be compatible with syck
-rw-r--r-- | test/psych/test_struct.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/psych/test_struct.rb b/test/psych/test_struct.rb index 3ec12b0..566851f 100644 --- a/test/psych/test_struct.rb +++ b/test/psych/test_struct.rb @@ -1,7 +1,7 @@ require 'minitest/autorun' require 'psych' -class StructWithIvar < Struct.new(:foo) +class PsychStructWithIvar < Struct.new(:foo) attr_reader :bar def initialize *args super @@ -31,7 +31,7 @@ module Psych end def test_roundtrip - thing = StructWithIvar.new('bar') + thing = PsychStructWithIvar.new('bar') struct = Psych.load(Psych.dump(thing)) assert_equal 'hello', struct.bar @@ -40,7 +40,7 @@ module Psych def test_load obj = Psych.load(<<-eoyml) ---- !ruby/struct:StructWithIvar +--- !ruby/struct:PsychStructWithIvar :foo: bar :@bar: hello eoyml |