]> source.dussan.org Git - redmine.git/commitdiff
Tests failure with SQLite3.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 1 Dec 2018 12:35:45 +0000 (12:35 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 1 Dec 2018 12:35:45 +0000 (12:35 +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@17674 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/version_test.rb

index 40014375ac55d0f91ec2d34e07fb1884e78ffd6c..b05096067be9b7598541be66b8a572badb99a8e5 100644 (file)
@@ -19,7 +19,8 @@ require File.expand_path('../../test_helper', __FILE__)
 
 class VersionTest < ActiveSupport::TestCase
   fixtures :projects, :users, :issues, :issue_statuses, :trackers,
-           :enumerations, :versions, :projects_trackers
+           :enumerations, :versions, :projects_trackers,
+           :custom_fields, :custom_fields_trackers, :custom_fields_projects
 
   def test_create
     v = Version.new(:project => Project.find(1), :name => '1.1',