Sha256: 99e1aff19d4c0766825e06c0c195881a25ad9665db62f5e8259151632701b236

Contents?: true

Size: 469 Bytes

Versions: 14

Compression:

Stored size: 469 Bytes

Contents

require_relative '../../test_helper'

class TransitionCollectionInvalidTest < StateMachinesTest
  def setup
    @transitions = StateMachines::TransitionCollection.new([false])
  end

  def test_should_be_empty
    assert @transitions.empty?
  end

  def test_should_not_succeed
    assert_equal false, @transitions.perform
  end

  def test_should_not_run_perform_block
    ran_block = false
    @transitions.perform { ran_block = true }
    refute ran_block
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
state_machines-0.5.0 test/unit/transition_collection/transition_collection_invalid_test.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/state_machines-0.2.2/test/unit/transition_collection/transition_collection_invalid_test.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/state_machines-0.2.2/test/unit/transition_collection/transition_collection_invalid_test.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/state_machines-0.2.2/test/unit/transition_collection/transition_collection_invalid_test.rb
state_machines-0.4.0 test/unit/transition_collection/transition_collection_invalid_test.rb
state_machines-0.3.0 test/unit/transition_collection/transition_collection_invalid_test.rb
state_machines-0.2.2 test/unit/transition_collection/transition_collection_invalid_test.rb
state_machines-0.2.1 test/unit/transition_collection/transition_collection_invalid_test.rb
state_machines-0.2.0 test/unit/transition_collection/transition_collection_invalid_test.rb
state_machines-0.1.4 test/unit/transition_collection/transition_collection_invalid_test.rb
state_machines-0.1.3 test/unit/transition_collection/transition_collection_invalid_test.rb
state_machines-0.1.2 test/unit/transition_collection/transition_collection_invalid_test.rb
state_machines-0.1.1 test/unit/transition_collection/transition_collection_invalid_test.rb
state_machines-0.1.0 test/unit/transition_collection/transition_collection_invalid_test.rb