mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
11 lines
308 B
Ruby
11 lines
308 B
Ruby
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
|