summaryrefslogtreecommitdiff
path: root/test/visitors/test_to_ruby.rb
blob: aa98fbb4b75f8c0af8789613c4f1146e6d9e81db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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