1
0
Fork 0
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:
Akira Matsuda 2013-01-07 05:42:08 +09:00
parent 4bfcae0b67
commit 033248b5fb

View file

@ -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