summaryrefslogtreecommitdiff
path: root/test/psych/test_struct.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-03-26 22:57:00 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-03-26 22:57:00 -0700
commita19b96529c9bce6f1fade726e6613f549f22dfad (patch)
tree38220994d567e07ebf1d5de28068ec2f1beefd4f /test/psych/test_struct.rb
parentc6b71d9412a18dc9910ff541b8afadbb62112fec (diff)
downloadpsych-a19b96529c9bce6f1fade726e6613f549f22dfad.zip
* test/psych/test_struct.rb: fixing tests to be compatible with syck
Diffstat (limited to 'test/psych/test_struct.rb')
-rw-r--r--test/psych/test_struct.rb6
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