2012-11-28 09:58:52 +00:00
|
|
|
require 'spec_helper'
|
2011-10-16 19:13:25 +00:00
|
|
|
|
|
|
|
describe "the new dsl" do
|
|
|
|
|
2012-11-28 09:58:52 +00:00
|
|
|
let(:process) {ProcessWithNewDsl.new}
|
|
|
|
|
2011-10-16 19:13:25 +00:00
|
|
|
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
|