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

test/functional/context_menus_controller_test.rb

index 60ffdb819f6ecfdd3c7fbbedf481977127ef05a7..aeaf7391a462e9b7a38841870402ccbf1c9c7b6c 100644 (file)
@@ -31,7 +31,8 @@ class ContextMenusControllerTest < Redmine::ControllerTest
            :issues, :issue_statuses, :issue_categories,
            :users,
            :enumerations,
-           :time_entries
+           :time_entries,
+           :custom_fields, :custom_fields_trackers, :custom_fields_projects
 
   def test_context_menu_one_issue
     @request.session[:user_id] = 2