Sha256: 8c92884566988303f9e688d4e40a03eb8af900d983258867287b2fab02e633c1
Contents?: true
Size: 340 Bytes
Versions: 1
Compression:
Stored size: 340 Bytes
Contents
require 'spec_helper' module Sexpr describe Grammar, "fetch" do let(:grammar){ Sexpr.load(:terminal => /[a-z]+/) } it 'returns the rule when it exists' do grammar[:terminal].should be_a(Terminal) end it 'returns nil otherwise' do grammar[:nosuchone].should be_nil end end end # module Sexpr
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sexpr-0.2.0 | spec/grammar/test_fetch.rb |