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.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activemodel/test/state_machine/event_test.rb b/activemodel/test/state_machine/event_test.rb
index 45adb4298a..8fb7e82ec2 100644
--- a/activemodel/test/state_machine/event_test.rb
+++ b/activemodel/test/state_machine/event_test.rb
@@ -2,18 +2,18 @@ require 'test_helper'
class EventTest < ActiveModel::TestCase
def setup
- @name = :close_order
+ @state_name = :close_order
@success = :success_callback
end
def new_event
- @event = ActiveModel::StateMachine::Event.new(nil, @name, {:success => @success}) do
+ @event = ActiveModel::StateMachine::Event.new(nil, @state_name, {:success => @success}) do
transitions :to => :closed, :from => [:open, :received]
end
end
test 'should set the name' do
- assert_equal @name, new_event.name
+ assert_equal @state_name, new_event.name
end
test 'should set the success option' do