mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
15 lines
314 B
Ruby
15 lines
314 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'when redefining states' do
|
|
let(:definer) { DoubleDefiner.new }
|
|
|
|
it "allows extending states" do
|
|
expect(definer).to receive(:do_enter)
|
|
definer.finish
|
|
end
|
|
|
|
it "allows extending events" do
|
|
expect(definer).to receive(:do_on_transition)
|
|
definer.finish
|
|
end
|
|
end
|