1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00
aasm/spec/unit/exception_spec.rb
2016-03-15 22:59:35 +03:00

11 lines
328 B
Ruby

require 'spec_helper'
describe AASM::InvalidTransition do
it 'should not be lazy detecting originating state' do
process = ProcessWithNewDsl.new
expect { process.stop! }.to raise_error do |err|
process.start
expect(err.message).to eql("Event 'stop' cannot transition from 'sleeping'. ")
end
end
end