Sha256: 1a370667c4965bd79a5fdadf7035a2bc812147ff6cec2f0d7a412d04e41eea37

Contents?: true

Size: 596 Bytes

Versions: 3

Compression:

Stored size: 596 Bytes

Contents

require 'spec_helper'
module Gisele::Language
  describe Grammar, 'unit' do

    it 'parses a single task definition' do
      expr = <<-UNIT.strip
        task Task1 end
      UNIT
      parse(expr, :unit_def).should eq(expr)
    end

    it 'accepts multiple task definitions' do
      expr = <<-UNIT.strip
        task Task1 end
        task Task2 end
      UNIT
      parse(expr, :unit_def).should eq(expr)
    end

    it 'allows trailing spaces' do
      expr = <<-UNIT
        task Task1 end
        task Task2 end
      UNIT
      parse(expr, :unit_def).should eq(expr)
    end

  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
gisele-language-0.5.1 spec/language/syntax/grammar/test_unit_def.rb
gisele-language-0.5.0 spec/language/syntax/grammar/test_unit_def.rb
gisele-0.5.0 spec/unit/language/syntax/grammar/test_unit_def.rb