blob: 0e29f940084f347383d0142608ca9bcac7005212 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
|