Sha256: 182dcbc31790a95d25b95753af51690a1b111074e98c1b903b6e1e271ccfc366
Contents?: true
Size: 366 Bytes
Versions: 2
Compression:
Stored size: 366 Bytes
Contents
require 'spec_helper' module Gisele::Language::Syntax describe WhenClause, 'to_ast' do it 'converts a when clause as expected' do expr = 'when goodCond Task' expected = \ [:when_clause, [:bool_expr, [:var_ref, "goodCond"] ], [:task_call_st, "Task"]] ast(expr, :when_clause).should eq(expected) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gisele-0.4.0 | spec/unit/language/syntax/to_ast/test_when_clause.rb |
gisele-0.3.0 | spec/unit/language/syntax/to_ast/test_when_clause.rb |