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
2015-07-01 21:35:18 +12:00

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