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.
This commit is contained in:
Felix Schäfer 2012-06-09 09:41:23 +02:00 committed by Holger Just
parent 3997220a45
commit 32e1cc2dee
1 changed files with 4 additions and 0 deletions

View File

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