class BranchWithConflictingConditionalsTest
Public Instance Methods
test_should_match_if_if_is_true_and_unless_is_false()
click to toggle source
# File test/unit/branch_test.rb, line 710 def test_should_match_if_if_is_true_and_unless_is_false branch = StateMachine::Branch.new(:if => lambda {true}, :unless => lambda {false}) assert branch.match(@object) end
test_should_not_match_if_if_is_false_and_unless_is_false()
click to toggle source
# File test/unit/branch_test.rb, line 720 def test_should_not_match_if_if_is_false_and_unless_is_false branch = StateMachine::Branch.new(:if => lambda {false}, :unless => lambda {false}) assert !branch.match(@object) end
test_should_not_match_if_if_is_false_and_unless_is_true()
click to toggle source
# File test/unit/branch_test.rb, line 715 def test_should_not_match_if_if_is_false_and_unless_is_true branch = StateMachine::Branch.new(:if => lambda {false}, :unless => lambda {true}) assert !branch.match(@object) end
test_should_not_match_if_if_is_true_and_unless_is_true()
click to toggle source
# File test/unit/branch_test.rb, line 725 def test_should_not_match_if_if_is_true_and_unless_is_true branch = StateMachine::Branch.new(:if => lambda {true}, :unless => lambda {true}) assert !branch.match(@object) end