提交 66cabfc9 编写于 作者: P Piotr Sarnacki

Fix ActiveRecord mysql tests

TL;DR: MySQL sucks.

Since it does not support transactions for schema changes,
when you run `create_table` in setup block, it will commit
current transaction. Now tests want to run `RELEASE SAVEPOINT`
after finishing tests which fails since there is no transaction.
上级 e5df4f92
......@@ -9,7 +9,7 @@ def migrate direction
end
end
def setup
def initialize(*args)
super
ActiveRecord::SchemaMigration.create_table
ActiveRecord::SchemaMigration.delete_all
......@@ -31,3 +31,4 @@ def test_migration_should_be_run_without_logger
end
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册