class BranchWithConflictingToRequirementsTest

Public Instance Methods

test_should_raise_an_exception() click to toggle source
# File test/unit/branch_test.rb, line 416
def test_should_raise_an_exception
  exception = assert_raise(ArgumentError) { StateMachine::Branch.new(:to => :idling, :except_to => :idling) }
  assert_equal 'Conflicting keys: to, except_to', exception.message
end