Sha256: 9047532120610bf5a728374b8eda9122fd9ce16f66f7451753aa9e811524bba8

Contents?: true

Size: 383 Bytes

Versions: 2

Compression:

Stored size: 383 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

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