class BranchWithMultipleOnRequirementsTest

Public Instance Methods

setup() click to toggle source
# File test/unit/branch_test.rb, line 236
def setup
  @object = Object.new
  @branch = StateMachine::Branch.new(:on => [:ignite, :park])
end
test_should_match_if_included() click to toggle source
# File test/unit/branch_test.rb, line 241
def test_should_match_if_included
  assert @branch.matches?(@object, :on => :ignite)
end
test_should_not_match_if_not_included() click to toggle source
# File test/unit/branch_test.rb, line 245
def test_should_not_match_if_not_included
  assert !@branch.matches?(@object, :on => :shift_up)
end