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: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 7059b17c
......@@ -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
......@@ -22,7 +22,8 @@ class Redmine::UserFieldFormatTest < ActionView::TestCase
fixtures :projects, :roles, :users, :members, :member_roles,
:issue_statuses, :issue_categories, :issue_relations, :workflows,
:custom_fields, :custom_fields_trackers, :custom_fields_projects
def test_user_role_should_reject_blank_values
field = => '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