Sha256: b4554631036f205fbfab2790df260fdb19e6732aa140548621872c372792f259

Contents?: true

Size: 308 Bytes

Versions: 8

Compression:

Stored size: 308 Bytes

Contents

require 'spec_helper'

describe "event naming" do
  let(:state_machine) { StateMachineWithFailedEvent.new }

  it "allows an event of failed without blowing the stack aka stack level too deep" do
    state_machine.failed

    expect { state_machine.failed }.to raise_error(AASM::InvalidTransition)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
aasm-4.6.0 spec/unit/event_naming_spec.rb
aasm-4.5.2 spec/unit/event_naming_spec.rb
aasm-4.5.1 spec/unit/event_naming_spec.rb
aasm-4.5.0 spec/unit/event_naming_spec.rb
aasm-4.4.1 spec/unit/event_naming_spec.rb
aasm-4.4.0 spec/unit/event_naming_spec.rb
aasm-4.3.0 spec/unit/event_naming_spec.rb
aasm-4.2.0 spec/unit/event_naming_spec.rb