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

15 lines
317 B
Ruby

require 'spec_helper'
describe 'callbacks for the new DSL' 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