class BranchWithConflictingFromRequirementsTest

Public Instance Methods

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