summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-03-22 19:06:21 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-03-22 19:06:21 -0700
commit9c46c5b60e9554da08109887684704fc8b7b3a4e (patch)
tree640d5abea5444d79bf8ee25e84187b00343ffd89 /test
parentc3040470955fcf7fcfbe973e1b0043b6228ba3a0 (diff)
downloadpsych-9c46c5b60e9554da08109887684704fc8b7b3a4e.zip
adding a warning for bad file formats
Diffstat (limited to 'test')
-rw-r--r--test/yaml/test_hash.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/yaml/test_hash.rb b/test/yaml/test_hash.rb
index e585bbc..c6c37bf 100644
--- a/test/yaml/test_hash.rb
+++ b/test/yaml/test_hash.rb
@@ -18,5 +18,16 @@ module YAML
def test_dump
assert_equal @hash, YAML.load(YAML.dump(@hash))
end
+
+ def test_ref_append
+ hash = YAML.load(<<-eoyml)
+---
+foo: &foo
+ hello: world
+bar:
+ <<: *foo
+eoyml
+ assert_equal({"foo"=>{"hello"=>"world"}, "bar"=>{"hello"=>"world"}}, hash)
+ end
end
end