class TransitionCollectionInvalidTest

Public Instance Methods

setup() click to toggle source
# File test/unit/transition_collection_test.rb, line 85
def setup
  @transitions = StateMachine::TransitionCollection.new([false])
end
test_should_be_empty() click to toggle source
# File test/unit/transition_collection_test.rb, line 89
def test_should_be_empty
  assert @transitions.empty?
end
test_should_not_run_perform_block() click to toggle source
# File test/unit/transition_collection_test.rb, line 97
def test_should_not_run_perform_block
  ran_block = false
  @transitions.perform { ran_block = true }
  assert !ran_block
end
test_should_not_succeed() click to toggle source
# File test/unit/transition_collection_test.rb, line 93
def test_should_not_succeed
  assert_equal false, @transitions.perform
end