Commit 2cc2d380 authored by jplang's avatar jplang

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: https://svn.redmine.org/redmine/trunk@17675 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 7059b17c
...@@ -23,7 +23,8 @@ class AttachmentsVisibilityTest < Redmine::ControllerTest ...@@ -23,7 +23,8 @@ class AttachmentsVisibilityTest < Redmine::ControllerTest
tests AttachmentsController tests AttachmentsController
fixtures :users, :email_addresses, :projects, :roles, :members, :member_roles, fixtures :users, :email_addresses, :projects, :roles, :members, :member_roles,
:enabled_modules, :projects_trackers, :issue_statuses, :enumerations, :enabled_modules, :projects_trackers, :issue_statuses, :enumerations,
:issues, :trackers, :versions :issues, :trackers, :versions,
:custom_fields, :custom_fields_trackers, :custom_fields_projects
def setup def setup
User.current = nil User.current = nil
......
...@@ -22,7 +22,8 @@ class Redmine::UserFieldFormatTest < ActionView::TestCase ...@@ -22,7 +22,8 @@ class Redmine::UserFieldFormatTest < ActionView::TestCase
fixtures :projects, :roles, :users, :members, :member_roles, fixtures :projects, :roles, :users, :members, :member_roles,
:trackers, :trackers,
:issue_statuses, :issue_categories, :issue_relations, :workflows, :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 def test_user_role_should_reject_blank_values
field = IssueCustomField.new(:name => 'Foo', :field_format => 'user', :user_role => ["1", ""]) field = IssueCustomField.new(:name => 'Foo', :field_format => 'user', :user_role => ["1", ""])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment