diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-07-29 10:15:23 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-07-29 10:15:23 -0700 |
commit | b4c0f7f54d9652e73e77a8703da5d031f70041ea (patch) | |
tree | cfc4f6081510b568384e141254bfbbf7c8be35a4 /test | |
parent | 478a7ac57bf802c11ff5d60fd547f5b2530691b4 (diff) | |
download | psych-b4c0f7f54d9652e73e77a8703da5d031f70041ea.zip |
sync with ruby trunk
Diffstat (limited to 'test')
-rw-r--r-- | test/psych/test_merge_keys.rb | 9 |
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 |