Skip to content

Commit

Permalink
more specific spec
Browse files Browse the repository at this point in the history
  • Loading branch information
stiff committed Mar 26, 2013
1 parent 0de3f1a commit 3de8aa3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spec/unit/transition_spec.rb
Expand Up @@ -38,8 +38,8 @@
st.opts.should == opts
end

it 'should set on_transition and guard from dsl with deprecation warning' do
opts = {:from => 'foo', :to => 'bar', :guard => 'g'}
it 'should set on_transition with deprecation warning' do
opts = {:from => 'foo', :to => 'bar'}
st = AASM::Transition.allocate
st.should_receive(:warn).with('[DEPRECATION] :on_transition is deprecated, use :after instead')

Expand All @@ -48,7 +48,6 @@
on_transition :after_callback
end

st.opts[:guard].should == ['g', :gg]
st.opts[:after].should == [:after_callback]
end

Expand Down

0 comments on commit 3de8aa3

Please sign in to comment.