Test failure with SQLite3.

ActiveRecord::RecordNotUnique: SQLite3::ConstraintException: UNIQUE constraint failed: custom_fields_trackers.custom_field_id, custom_fields_trackers.tracker_id: INSERT INTO "custom_fields_trackers" ("custom_field_id", "tracker_id") VALUES (?, ?)


git-svn-id: http://svn.redmine.org/redmine/trunk@17739 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2018-12-15 22:32:27 +00:00
parent 7d827b1389
commit 42fd5383fa

View File

@@ -29,7 +29,8 @@ class SearchCustomFieldsVisibilityTest < Redmine::ControllerTest
:projects_trackers,
:enabled_modules,
:enumerations,
:workflows
:workflows,
:custom_fields, :custom_fields_trackers
def setup
field_attributes = {:field_format => 'string', :is_for_all => true, :is_filter => true, :searchable => true, :trackers => Tracker.all}