Sha256: e1977671217804d6cea119185f9fab216f8c57d57f64304f60e5903d5f4c7108
Contents?: true
Size: 732 Bytes
Versions: 2
Compression:
Stored size: 732 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' describe Melbourne::Parser do it 'should correctly parse "$x"' do ruby = '$x' ast = {:globalvariableaccess=>{:@name=>:$x, :@line=>1}} ruby.should parse_as(ast) end it 'should correctly parse "$stderr"' do ruby = '$stderr' ast = {:globalvariableaccess=>{:@name=>:$stderr, :@line=>1}} ruby.should parse_as(ast) end it 'should correctly parse "$__blah"' do ruby = '$__blah' ast = {:globalvariableaccess=>{:@name=>:$__blah, :@line=>1}} ruby.should parse_as(ast) end it 'should correctly parse "$_"' do ruby = '$_' ast = {:globalvariableaccess=>{:@name=>:$_, :@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/gvar_spec.rb |
melbourne-1.0.0 | spec/lib/parser/gvar_spec.rb |