diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-06-01 12:37:06 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-06-01 12:37:06 -0700 |
commit | 43f0af4d39a5d8c1191fef589d947fc92a34f7d4 (patch) | |
tree | 705c5cf31046a8e1c7847744bb31524b26bf4325 | |
parent | f550d4db96b406efc91f92a9c8ebdcda7d407bc9 (diff) | |
parent | 7544c7a9f290a3ea25099ae38d52795458391785 (diff) | |
download | rails-43f0af4d39a5d8c1191fef589d947fc92a34f7d4.tar.gz rails-43f0af4d39a5d8c1191fef589d947fc92a34f7d4.tar.bz2 rails-43f0af4d39a5d8c1191fef589d947fc92a34f7d4.zip |
Merge pull request #6593 from yahonda/skip_test_remove_column_with_array_as_an_argument_is_deprecated
Skip test_remove_column_with_array_as_an_argument_is_deprecated with Oracle
-rw-r--r-- | activerecord/test/cases/migration_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
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 |