mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Needs to reset SchemaMigration first, or the tests fail in sqlite3
This commit is contained in:
parent
4bfcae0b67
commit
033248b5fb
1 changed files with 1 additions and 1 deletions
|
@ -7,6 +7,7 @@ if ActiveRecord::Base.connection.supports_migrations?
|
|||
|
||||
def setup
|
||||
@connection = ActiveRecord::Base.connection
|
||||
ActiveRecord::SchemaMigration.drop_table
|
||||
end
|
||||
|
||||
def teardown
|
||||
|
@ -45,5 +46,4 @@ if ActiveRecord::Base.connection.supports_migrations?
|
|||
assert_nothing_raised { @connection.select_all "SELECT * FROM fruits" }
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue