aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/migration_test.rb
diff options
context:
space:
mode:
authorJoe Rafaniello <jrafanie@gmail.com>2012-08-18 11:10:06 -0400
committerJoe Rafaniello <jrafanie@gmail.com>2012-08-18 11:21:10 -0400
commit066ecf00372d2c161a7a200f1347ec3210768a9b (patch)
tree620c75876ab1f35d3f911a76b7a93281ab4f4d33 /activerecord/test/cases/migration_test.rb
parentd6dbd7fbbcb38c7d34a0928bde2bfc7ce21618f0 (diff)
downloadrails-066ecf00372d2c161a7a200f1347ec3210768a9b.tar.gz
rails-066ecf00372d2c161a7a200f1347ec3210768a9b.tar.bz2
rails-066ecf00372d2c161a7a200f1347ec3210768a9b.zip
Table#remove passed an array to remove_column, which is deprecated.
See 02ca9151a043a4fefbb3f22edd05f0cd392fffaa
Diffstat (limited to 'activerecord/test/cases/migration_test.rb')
-rw-r--r--activerecord/test/cases/migration_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb
index fb5eb2633b..f0c55b1535 100644
--- a/activerecord/test/cases/migration_test.rb
+++ b/activerecord/test/cases/migration_test.rb
@@ -1976,14 +1976,14 @@ if ActiveRecord::Base.connection.supports_migrations?
def test_remove_drops_single_column
with_change_table do |t|
- @connection.expects(:remove_column).with(:delete_me, [:bar])
+ @connection.expects(:remove_column).with(:delete_me, :bar)
t.remove :bar
end
end
def test_remove_drops_multiple_columns
with_change_table do |t|
- @connection.expects(:remove_column).with(:delete_me, [:bar, :baz])
+ @connection.expects(:remove_column).with(:delete_me, :bar, :baz)
t.remove :bar, :baz
end
end