From f3fcb96084fd7edf69bcd23e7d1dd3887794858c Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 28 Sep 2009 10:58:10 -0700 Subject: moving constants around, starting the to_ruby visitor --- test/visitors/test_to_ruby.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/visitors/test_to_ruby.rb (limited to 'test/visitors/test_to_ruby.rb') diff --git a/test/visitors/test_to_ruby.rb b/test/visitors/test_to_ruby.rb new file mode 100644 index 0000000..aa98fbb --- /dev/null +++ b/test/visitors/test_to_ruby.rb @@ -0,0 +1,16 @@ +require 'helper' + +module Psych + module Visitors + class TestToRuby < Test::Unit::TestCase + def setup + @visitor = ToRuby.new + end + + def test_scalar + scalar = Nodes::Scalar.new('foo') + assert_equal 'foo', @visitor.accept(scalar) + end + end + end +end -- cgit v1.2.3