Sha256: aeda555cf42f4ee49102bb4e61c46b4e1877fe3b2339615870f67e9ccbb128f0

Contents?: true

Size: 390 Bytes

Versions: 1

Compression:

Stored size: 390 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 'allows trailing spaces' do
      expr = <<-UNIT
        task Task1 end

      UNIT
      parse(expr, :unit_def).should eq(expr)
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gisele-language-0.6.0 spec/language/syntax/grammar/test_unit_def.rb