Sha256: 1e50810a9c6178970a4fa1d0e5037c644f1eb6d29213c4eaa6c5b4b330d0a1b6
Contents?: true
Size: 782 Bytes
Versions: 2
Compression:
Stored size: 782 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' describe Melbourne::Parser do it 'should correctly parse "`touch ...`"' do ruby = <<-ruby t = 5 `touch \#{t}` ruby ast = {:block=> {:@array=> [{:localvariableassignment=> {:@variable=>nil, :@name=>:t, :@line=>1, :@value=>{:fixnumliteral=>{:@line=>1, :@value=>5}}}}, {:dynamicexecutestring=> {:@string=>:"touch ", :@array=> [{:tostring=> {:@line=>2, :@value=> {:localvariableaccess=> {:@variable=>nil, :@name=>:t, :@line=>2}}}}], :@line=>2}}], :@line=>1}} ruby.should parse_as(ast) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
melbourne-1.0.1 | spec/lib/parser/dxstr_spec.rb |
melbourne-1.0.0 | spec/lib/parser/dxstr_spec.rb |