summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2018-12-01 12:38:16 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2018-12-01 12:38:16 +0000
commit4ce9de94bcdcf132c524c55fcdd52119815aac0d (patch)
tree2a72389803da60d3a55d9cc06f0fd791aff3d171
parent4f5f1f394537d2b91a156310d6b2d41a9437df73 (diff)
downloadredmine-4ce9de94bcdcf132c524c55fcdd52119815aac0d.tar.gz
redmine-4ce9de94bcdcf132c524c55fcdd52119815aac0d.zip
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
-rw-r--r--test/functional/attachments_visibility_test.rb3
-rw-r--r--test/unit/lib/redmine/field_format/user_field_format_test.rb3
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", ""])