Sha256: c6d3ca88a6ee4d865321f0527a1ee9c43e894b889cddc3025acc6c159404ee3e
Contents?: true
Size: 442 Bytes
Versions: 4
Compression:
Stored size: 442 Bytes
Contents
require 'spec_helper' module Gisele::Language describe Grammar, 'event' do it 'parses correct events' do parse('Task:start', :event).should eq('Task:start') parse('Task:end', :event).should eq('Task:end') parse('an_event', :event).should eq('an_event') end it 'raises on invalid event names' do lambda{ parse('Task', :event) }.should raise_error(Citrus::ParseError) end end end
Version data entries
4 entries across 4 versions & 2 rubygems