From 4ce9de94bcdcf132c524c55fcdd52119815aac0d Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 1 Dec 2018 12:38:16 +0000 Subject: [PATCH] Tests 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@17675 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/attachments_visibility_test.rb | 3 ++- test/unit/lib/redmine/field_format/user_field_format_test.rb | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/functional/attachments_visibility_test.rb b/test/functional/attachments_visibility_test.rb index 2f9197e6b..c4b8aec0b 100644 --- a/test/functional/attachments_visibility_test.rb +++ b/test/functional/attachments_visibility_test.rb @@ -23,7 +23,8 @@ class AttachmentsVisibilityTest < Redmine::ControllerTest tests AttachmentsController fixtures :users, :email_addresses, :projects, :roles, :members, :member_roles, :enabled_modules, :projects_trackers, :issue_statuses, :enumerations, - :issues, :trackers, :versions + :issues, :trackers, :versions, + :custom_fields, :custom_fields_trackers, :custom_fields_projects def setup User.current = nil diff --git a/test/unit/lib/redmine/field_format/user_field_format_test.rb b/test/unit/lib/redmine/field_format/user_field_format_test.rb index 7c726957f..2612bb475 100644 --- a/test/unit/lib/redmine/field_format/user_field_format_test.rb +++ b/test/unit/lib/redmine/field_format/user_field_format_test.rb @@ -22,7 +22,8 @@ class Redmine::UserFieldFormatTest < ActionView::TestCase fixtures :projects, :roles, :users, :members, :member_roles, :trackers, :issue_statuses, :issue_categories, :issue_relations, :workflows, - :enumerations + :enumerations, + :custom_fields, :custom_fields_trackers, :custom_fields_projects def test_user_role_should_reject_blank_values field = IssueCustomField.new(:name => 'Foo', :field_format => 'user', :user_role => ["1", ""]) -- 2.39.5