spec/parser/ruby/ast_node_spec.rb in yard-0.7.2 vs spec/parser/ruby/ast_node_spec.rb in yard-0.7.3

- old
+ new

@@ -20,10 +20,11 @@ describe '#pretty_print' do it "should show a list of nodes" do obj = YARD::Parser::Ruby::RubyParser.parse("# x\nbye", "x").ast out = StringIO.new PP.pp(obj, out) - out.string.should == "s(s(:var_ref,\n" + + vcall = RUBY_VERSION >= '1.9.3' ? 'vcall' : 'var_ref' + out.string.should == "s(s(:#{vcall},\n" + " s(:ident, \"bye\", line: 2..2, source: 4..6),\n" + " docstring: \"x\",\n" + " line: 2..2,\n" + " source: 4..6))\n" end