Sha256: a12604fced7acb5791b3135287cb7e5593f1f1851aaf08ff2d2f8cc68402cbef

Contents?: true

Size: 229 Bytes

Versions: 2

Compression:

Stored size: 229 Bytes

Contents

require File.dirname(__FILE__) + '/../../spec_helper'

describe Melbourne::Parser do

  it 'should correctly parse "X"' do
    ruby = 'X'
    ast  = {:constfind=>{:@name=>:X, :@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/const_spec.rb
melbourne-1.0.0 spec/lib/parser/const_spec.rb