Skip to content

Commit

Permalink
implement more specs
Browse files Browse the repository at this point in the history
  • Loading branch information
bakineggs committed May 1, 2012
1 parent 5ef64c4 commit 83c2a3b
Showing 1 changed file with 35 additions and 5 deletions.
40 changes: 35 additions & 5 deletions spec/language_spec.rb
Expand Up @@ -2511,8 +2511,15 @@ def parse_state definition
end

describe 'referenced in a creating condition' do
it 'applies the rule'
it 'allows the variable to be used in a code segment'
let(:rules) { <<-EOS }
+Creating: X
!Matched:
+Matched:
EOS

let(:start_state) { "" }
it_applies_the_rule "Creating:\nMatched:"
it_allows_the_variable_to_be_used_in_a_code_segment "X", "Creating"

describe 'and another creating condition' do
it 'applies the rule'
Expand All @@ -2521,15 +2528,38 @@ def parse_state definition
end

describe 'and a preventing condition' do
it 'causes a compile error'
let(:rules) { <<-EOS }
+Creating: X
!Preventing: X
!Matched:
+Matched:
EOS

let(:start_state) { "" }
it_causes_a_compile_error
end
end

describe 'referenced in a preventing condition' do
it 'causes a compile error'
let(:rules) { <<-EOS }
!Preventing: X
!Matched:
+Matched:
EOS

let(:start_state) { "" }
it_causes_a_compile_error

describe 'and another preventing condition' do
it 'causes a compile error'
let(:rules) { <<-EOS }
!Preventing 1: X
!Preventing 2: X
!Matched:
+Matched:
EOS

let(:start_state) { "" }
it_causes_a_compile_error
end
end

Expand Down

0 comments on commit 83c2a3b

Please sign in to comment.