Sha256: 740f62b2efd870f2a4213bd0aaa117c0a489a18a7ef6e94bdce874cae227d340

Contents?: true

Size: 329 Bytes

Versions: 14

Compression:

Stored size: 329 Bytes

Contents

require_relative '../../test_helper'

class BranchWithConflictingToRequirementsTest < StateMachinesTest
  def test_should_raise_an_exception
    exception = assert_raises(ArgumentError) { StateMachines::Branch.new(to: :idling, except_to: :idling) }
    assert_equal 'Conflicting keys: to, except_to', exception.message
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

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