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