Sha256: c081739133d167d8d3bbd49bd2ff246eb36414f1634cfce332f7d08c6e4262f3

Contents?: true

Size: 293 Bytes

Versions: 2

Compression:

Stored size: 293 Bytes

Contents

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

describe Melbourne::Parser do

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