aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/state_machine/event_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activemodel/test/state_machine/event_test.rb')
-rw-r--r--activemodel/test/state_machine/event_test.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/activemodel/test/state_machine/event_test.rb b/activemodel/test/state_machine/event_test.rb
index 7f4a9afdd8..45adb4298a 100644
--- a/activemodel/test/state_machine/event_test.rb
+++ b/activemodel/test/state_machine/event_test.rb
@@ -20,12 +20,10 @@ class EventTest < ActiveModel::TestCase
assert_equal @success, new_event.success
end
- uses_mocha 'StateTransition creation' do
- test 'should create StateTransitions' do
- ActiveModel::StateMachine::StateTransition.expects(:new).with(:to => :closed, :from => :open)
- ActiveModel::StateMachine::StateTransition.expects(:new).with(:to => :closed, :from => :received)
- new_event
- end
+ test 'should create StateTransitions' do
+ ActiveModel::StateMachine::StateTransition.expects(:new).with(:to => :closed, :from => :open)
+ ActiveModel::StateMachine::StateTransition.expects(:new).with(:to => :closed, :from => :received)
+ new_event
end
end