Sha256: 5d4c882de549430a42aef57fb5994999b5a73c35fd95d5adeb985d6668fddbfe

Contents?: true

Size: 537 Bytes

Versions: 2

Compression:

Stored size: 537 Bytes

Contents

require 'spec_helper'
module Gisele::Language::Syntax
  describe Grammar,'task_name' do

    it 'parses correct task names' do
      parse('A',          :task_name).should eq('A')
      parse('Diagnosis',  :task_name).should eq('Diagnosis')
      parse('TaskName',   :task_name).should eq('TaskName')
      parse('Task_Name',  :task_name).should eq('Task_Name')
    end

    it 'raises on invalid task names' do
      lambda{
        parse('not_a_task_name', :task_name)
      }.should raise_error(Citrus::ParseError)
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gisele-0.4.0 spec/unit/language/syntax/grammar/test_task_name.rb
gisele-0.3.0 spec/unit/language/syntax/grammar/test_task_name.rb