Sha256: 9fbd168572ccd5c4ce2e883e794f5730b1de0bc312397d9f8189d2a398d3fafb

Contents?: true

Size: 605 Bytes

Versions: 2

Compression:

Stored size: 605 Bytes

Contents

require 'spec_helper'
module Gisele::Language::Syntax
  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

2 entries across 2 versions & 1 rubygems

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