class BranchWithMultipleExceptOnRequirementsTest
Public Instance Methods
setup()
click to toggle source
# File test/unit/branch_test.rb, line 394 def setup @object = Object.new @branch = StateMachine::Branch.new(:except_on => [:ignite, :park]) end
test_should_match_if_not_included()
click to toggle source
# File test/unit/branch_test.rb, line 399 def test_should_match_if_not_included assert @branch.matches?(@object, :on => :shift_up) end
test_should_not_match_if_included()
click to toggle source
# File test/unit/branch_test.rb, line 403 def test_should_not_match_if_included assert !@branch.matches?(@object, :on => :ignite) end