Permalink
Browse files

Needs to reset SchemaMigration first, or the tests fail in sqlite3

  • Loading branch information...
1 parent 4bfcae0 commit 033248b5fbf5fa10e42b3647ea136bec20227a9a @amatsuda amatsuda committed Jan 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/ar_schema_test.rb
@@ -7,6 +7,7 @@ class ActiveRecordSchemaTest < ActiveRecord::TestCase
def setup
@connection = ActiveRecord::Base.connection
+ ActiveRecord::SchemaMigration.drop_table
end
def teardown
@@ -45,5 +46,4 @@ def test_schema_subclass
assert_nothing_raised { @connection.select_all "SELECT * FROM fruits" }
end
end
-
end

3 comments on commit 033248b

@rafaelfranca
Member

@amatsuda are you sure. I'm not getting any failures on sqlite3, or it is just when running this individual file?

@amatsuda
Member

@rafaelfranca Yes, when running this individual file.

@rafaelfranca
Member

👍

Please sign in to comment.