class TransitionCollectionWithActionHookAndSkippedActionTest

Public Instance Methods

setup() click to toggle source
# File test/unit/transition_collection_test.rb, line 1193
def setup
  super
  @result = StateMachine::TransitionCollection.new([@transition], :actions => false).perform
end
test_should_not_run_action() click to toggle source
# File test/unit/transition_collection_test.rb, line 1202
def test_should_not_run_action
  assert !@object.saved
end
test_should_succeed() click to toggle source
# File test/unit/transition_collection_test.rb, line 1198
def test_should_succeed
  assert_equal true, @result
end