]> source.dussan.org Git - redmine.git/commitdiff
Tests failure with SQLite3.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 1 Dec 2018 12:38:16 +0000 (12:38 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 1 Dec 2018 12:38:16 +0000 (12:38 +0000)
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
test/unit/lib/redmine/field_format/user_field_format_test.rb

index 2f9197e6bd41ef60062d548fbf2cb0eab7fc7fc8..c4b8aec0bd1e6401d59c6a3c0b6db7055a99daff 100644 (file)
@@ -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
index 7c726957f2b160912cbb103fbe6f971166b03a8c..2612bb4754ae8be425c20da31bcac1910f9b6497 100644 (file)
@@ -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", ""])