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

13 lines
350 B
Ruby
Raw Normal View History

2012-11-28 04:58:52 -05:00
require 'spec_helper'
describe "the new dsl" do
2012-11-28 04:58:52 -05:00
let(:process) {ProcessWithNewDsl.new}
it 'should not conflict with other event or state methods' do
lambda {ProcessWithNewDsl.state}.should raise_error(RuntimeError, "wrong state method")
lambda {ProcessWithNewDsl.event}.should raise_error(RuntimeError, "wrong event method")
end
end