class BranchWithConflictingOnRequirementsTest
Public Instance Methods
test_should_raise_an_exception()
click to toggle source
# File test/unit/branch_test.rb, line 423 def test_should_raise_an_exception exception = assert_raise(ArgumentError) { StateMachine::Branch.new(:on => :ignite, :except_on => :ignite) } assert_equal 'Conflicting keys: on, except_on', exception.message end