Skip to content
Browse files

start reorganizing variable specs

  • Loading branch information...
1 parent 5e6a808 commit 1ba984777cbf7e1ade0783d32ca6c3961c5bcddb @bakineggs committed Dec 16, 2011
Showing with 74 additions and 0 deletions.
  1. +74 −0 spec/language_spec.rb
View
74 spec/language_spec.rb
@@ -551,6 +551,80 @@ def parse_state definition
end
describe 'variables' do
+ describe 'referenced in a matching condition' do
+ it 'allows the variable to be used in a code segment'
+
+ describe 'and another matching condition' do
+ it 'does not allow the variable to be used in a code segment'
+ end
+
+ describe 'and a removing condition' do
+ it 'does not allow the variable to be used in a code segment'
+
+ describe 'and a creating condition' do
+ it 'does not allow the variable to be used in a code segment'
+
+ describe 'and a preventing condition' do
+ it 'does not allow the variable to be used in a code segment'
+ end
+ end
+ end
+
+ describe 'and a creating condition' do
+ it 'allows the variable to be used in a code segment'
+ it 'does not link the nodes'
+
+ describe 'and a preventing condition' do
+ it 'allows the variable to be used in a code segment'
+ end
+ end
+
+ describe 'and a preventing condition' do
+ it 'allows the variable to be used in a code segment'
+ end
+ end
+
+ describe 'referenced in a removing condition' do
+ it 'allows the variable to be used in a code segment'
+
+ describe 'and another removing condition' do
+ it 'does not allow the variable to be used in a code segment'
+ end
+
+ describe 'and a creating condition' do
+ it 'allows the variable to be used in a code segment'
+
+ describe 'and a preventing condition' do
+ it 'allows the variable to be used in a code segment'
+ end
+ end
+
+ describe 'and a preventing condition' do
+ it 'allows the variable to be used in a code segment'
+ end
+ end
+
+ describe 'referenced in a creating condition' do
+ it 'allows the variable to be used in a code segment'
+
+ describe 'and another creating condition' do
+ it 'allows the variable to be used in a code segment'
+ it 'does not link the nodes'
+ end
+
+ describe 'and a preventing condition' do
+ it 'allows the variable to be used in a code segment'
+ end
+ end
+
+ describe 'referenced in a preventing condition' do
+ it 'does not allow the variable to be used in a code segment'
+
+ describe 'and another preventing condition' do
+ it 'does not allow the variable to be used in a code segment'
+ end
+ end
+
describe 'that duplicate' do
let(:rules) do
<<-EOS

0 comments on commit 1ba9847

Please sign in to comment.
Something went wrong with that request. Please try again.