Commit 32e1cc2d authored by Felix Schäfer's avatar Felix Schäfer Committed by Holger Just

Don't test transaction-based features on SQLite

SQLite doesn't support nested transactions, thus we can't test
transaction-based features inside a test wrapped in a transaction.
parent 3997220a
......@@ -131,6 +131,10 @@ class ProjectEnumerationsControllerTest < ActionController::TestCase
end
def test_update_when_creating_new_activities_will_not_convert_existing_data_if_an_exception_is_raised
# SQLite doesn't support nested transactions, thus we can't test transaction-
# based features in a test wrapped in a transaction.
return if ChiliProject::Database.sqlite?
# TODO: Need to cause an exception on create but these tests
# aren't setup for mocking. Just create a record now so the
# second one is a dupicate
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment