From 7544c7a9f290a3ea25099ae38d52795458391785 Mon Sep 17 00:00:00 2001 From: Yasuo Honda Date: Sat, 2 Jun 2012 00:59:19 +0900 Subject: Skip test_remove_column_with_array_as_an_argument_is_deprecated with Oracle adapter. Because Oracle adapter supports only remove_column :table_name, :column_name syntax and it has never supported remove_column :table_name, [:column_name]. --- activerecord/test/cases/migration_test.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'activerecord/test/cases/migration_test.rb') diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb index a448e0af9d..9684785ecf 100644 --- a/activerecord/test/cases/migration_test.rb +++ b/activerecord/test/cases/migration_test.rb @@ -874,6 +874,8 @@ if ActiveRecord::Base.connection.supports_migrations? end def test_remove_column_with_array_as_an_argument_is_deprecated + return skip "remove_column with array as argument is not supported with OracleAdapter" if current_adapter? :OracleAdapter + ActiveRecord::Base.connection.create_table(:hats) do |table| table.column :hat_name, :string, :limit => 100 table.column :hat_size, :integer @@ -884,7 +886,7 @@ if ActiveRecord::Base.connection.supports_migrations? Person.connection.remove_column("hats", ["hat_name", "hat_size"]) end ensure - ActiveRecord::Base.connection.drop_table(:hats) + ActiveRecord::Base.connection.drop_table(:hats) rescue nil end def test_change_type_of_not_null_column -- cgit v1.2.3