1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #23825 from kamipo/remove_needless_drop_table_test_limits

Remove needless `drop_table :test_limits`
This commit is contained in:
Rafael França 2016-02-23 12:18:35 -03:00
commit 9cf5fa6406

View file

@ -587,7 +587,6 @@ class MigrationTest < ActiveRecord::TestCase
if current_adapter?(:Mysql2Adapter, :PostgreSQLAdapter)
def test_out_of_range_limit_should_raise
Person.connection.drop_table :test_limits rescue nil
e = assert_raise(ActiveRecord::ActiveRecordError, "integer limit didn't raise") do
Person.connection.create_table :test_integer_limits, :force => true do |t|
t.column :bigone, :integer, :limit => 10
@ -603,8 +602,6 @@ class MigrationTest < ActiveRecord::TestCase
end
end
end
Person.connection.drop_table :test_limits rescue nil
end
end