diff options
author | Akira Matsuda <ronnie@dio.jp> | 2013-01-07 05:42:08 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2013-01-07 07:37:23 +0900 |
commit | 033248b5fbf5fa10e42b3647ea136bec20227a9a (patch) | |
tree | eac38f916dd03ad5c184948ae9ec6099c3b0bcd8 /activerecord/test | |
parent | 4bfcae0b6723146aa18fec49b5311db9d3939044 (diff) | |
download | rails-033248b5fbf5fa10e42b3647ea136bec20227a9a.tar.gz rails-033248b5fbf5fa10e42b3647ea136bec20227a9a.tar.bz2 rails-033248b5fbf5fa10e42b3647ea136bec20227a9a.zip |
Needs to reset SchemaMigration first, or the tests fail in sqlite3
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/ar_schema_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/ar_schema_test.rb b/activerecord/test/cases/ar_schema_test.rb index b2eac0349b..aa5b27623e 100644 --- a/activerecord/test/cases/ar_schema_test.rb +++ b/activerecord/test/cases/ar_schema_test.rb @@ -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 |