From 3de8aa397de0ef067a827243c94270a6a0187081 Mon Sep 17 00:00:00 2001 From: Vladimir Meremyanin Date: Tue, 26 Mar 2013 09:07:59 +0400 Subject: [PATCH] more specific spec --- spec/unit/transition_spec.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/unit/transition_spec.rb b/spec/unit/transition_spec.rb index 2c347bb..af1180d 100644 --- a/spec/unit/transition_spec.rb +++ b/spec/unit/transition_spec.rb @@ -38,8 +38,8 @@ describe AASM::Transition do 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') @@ -48,7 +48,6 @@ describe AASM::Transition do on_transition :after_callback end - st.opts[:guard].should == ['g', :gg] st.opts[:after].should == [:after_callback] end