summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-07-29 10:15:23 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2011-07-29 10:15:23 -0700
commitb4c0f7f54d9652e73e77a8703da5d031f70041ea (patch)
treecfc4f6081510b568384e141254bfbbf7c8be35a4 /test
parent478a7ac57bf802c11ff5d60fd547f5b2530691b4 (diff)
downloadpsych-b4c0f7f54d9652e73e77a8703da5d031f70041ea.zip
sync with ruby trunk
Diffstat (limited to 'test')
-rw-r--r--test/psych/test_merge_keys.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/psych/test_merge_keys.rb b/test/psych/test_merge_keys.rb
index b3ebe9b..bf5968f 100644
--- a/test/psych/test_merge_keys.rb
+++ b/test/psych/test_merge_keys.rb
@@ -2,6 +2,15 @@ require 'psych/helper'
module Psych
class TestMergeKeys < TestCase
+ def test_missing_merge_key
+ yaml = <<-eoyml
+bar:
+ << : *foo
+ eoyml
+ exp = assert_raises(Psych::BadAlias) { Psych.load yaml }
+ assert_match 'foo', exp.message
+ end
+
# [ruby-core:34679]
def test_merge_key
yaml = <<-eoyml