Sha256: 9f70d27e67dc9ae9ff5be1c4d93c5e9c5c9e2013f005a88844541bd683f415ad

Contents?: true

Size: 374 Bytes

Versions: 4

Compression:

Stored size: 374 Bytes

Contents

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

    it 'parses a simple process statement' do
      expr = <<-PROCESS.strip
        DoSomething
        if goodCond
          DoForGood
        else
          DoForBad
        end
        CleanDesk
      PROCESS
      parse(expr, :process_statement).should eq(expr)
    end

  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

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