diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-11-22 18:21:48 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-11-22 19:19:13 -0800 |
commit | 0492759db338a01623672674408a0bed62951ac6 (patch) | |
tree | 637861f368607c6b06e532fa180b3e487fadc47a /activemodel/test/state_machine/event_test.rb | |
parent | 51383c57a2f556d1ea44c93deb68e7b70f8c6e35 (diff) | |
download | rails-0492759db338a01623672674408a0bed62951ac6.tar.gz rails-0492759db338a01623672674408a0bed62951ac6.tar.bz2 rails-0492759db338a01623672674408a0bed62951ac6.zip |
MiniTest compat: don't shadow @name
Diffstat (limited to 'activemodel/test/state_machine/event_test.rb')
-rw-r--r-- | activemodel/test/state_machine/event_test.rb | 6 |
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 |