class TransitionCollectionWithActionHookInvalidTest

Public Instance Methods

setup() click to toggle source
# File test/unit/transition_collection_test.rb, line 1258
def setup
  super
  @result = StateMachine::TransitionCollection.new([@transition, nil]).perform
end
test_should_not_run_action() click to toggle source
# File test/unit/transition_collection_test.rb, line 1267
def test_should_not_run_action
  assert !@object.saved
end
test_should_not_succeed() click to toggle source
# File test/unit/transition_collection_test.rb, line 1263
def test_should_not_succeed
  assert_equal false, @result
end