aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/migration/command_recorder_test.rb
diff options
context:
space:
mode:
authorjbbarth <jeanbaptiste.barth@gmail.com>2011-08-28 06:02:15 +0200
committerjbbarth <jeanbaptiste.barth@gmail.com>2011-08-28 06:02:15 +0200
commit24674b344864298135f4f1cecca1214c6b9ddf42 (patch)
tree90d10a3a963d885694e882e7e8829c5a85fdb034 /activerecord/test/cases/migration/command_recorder_test.rb
parentbb4dedbc2cc7b96b95bf4519f56ed9624949a7ef (diff)
downloadrails-24674b344864298135f4f1cecca1214c6b9ddf42.tar.gz
rails-24674b344864298135f4f1cecca1214c6b9ddf42.tar.bz2
rails-24674b344864298135f4f1cecca1214c6b9ddf42.zip
Fixed bad options order in ActiveRecord::Migration::CommandRecorder#invert_rename_index
Diffstat (limited to 'activerecord/test/cases/migration/command_recorder_test.rb')
-rw-r--r--activerecord/test/cases/migration/command_recorder_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/migration/command_recorder_test.rb b/activerecord/test/cases/migration/command_recorder_test.rb
index 36007255fa..d108b456f0 100644
--- a/activerecord/test/cases/migration/command_recorder_test.rb
+++ b/activerecord/test/cases/migration/command_recorder_test.rb
@@ -104,9 +104,9 @@ module ActiveRecord
end
def test_invert_rename_index
- @recorder.record :rename_index, [:old, :new]
+ @recorder.record :rename_index, [:table, :old, :new]
rename = @recorder.inverse.first
- assert_equal [:rename_index, [:new, :old]], rename
+ assert_equal [:rename_index, [:table, :new, :old]], rename
end
def test_invert_add_timestamps