1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00
aasm/spec/unit/event_naming_spec.rb
2015-05-18 20:40:54 +12:00

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