aboutsummaryrefslogtreecommitdiffstats
path: root/test/psych/test_deprecated.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/psych/test_deprecated.rb')
-rw-r--r--test/psych/test_deprecated.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/psych/test_deprecated.rb b/test/psych/test_deprecated.rb
index e77d18c10c..41106ffcfd 100644
--- a/test/psych/test_deprecated.rb
+++ b/test/psych/test_deprecated.rb
@@ -139,5 +139,13 @@ module Psych
assert_equal 'some string', coder.scalar
assert_equal :scalar, coder.type
end
+
+ class YamlAs
+ yaml_as 'helloworld'
+ end
+
+ def test_yaml_as
+ assert_match(/helloworld/, Psych.dump(YamlAs.new))
+ end
end
end