diff options
Diffstat (limited to 'test/visitors')
-rw-r--r-- | test/visitors/test_yast_builder.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/visitors/test_yast_builder.rb b/test/visitors/test_yast_builder.rb new file mode 100644 index 0000000..0e29f94 --- /dev/null +++ b/test/visitors/test_yast_builder.rb @@ -0,0 +1,15 @@ +require 'minitest/autorun' +require 'psych' + +module Psych + module Visitors + class TestYASTBuilder < MiniTest::Unit::TestCase + def test_scalar + v = Visitors::YASTBuilder.new + v.accept 'foo' + + assert_equal 'foo', Psych.load(v.tree.to_yaml) + end + end + end +end |