1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00
aasm/spec/unit/reloading_spec.rb

16 lines
314 B
Ruby
Raw Normal View History

require 'spec_helper'
2015-07-01 05:35:18 -04:00
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