From: Go MAEDA Date: Mon, 11 Nov 2024 01:46:04 +0000 (+0000) Subject: Fix random test failures due to missing fixtures (#41623). X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0abf7105dab7c6558a26cdcc28c6770ad89649d0;p=redmine.git Fix random test failures due to missing fixtures (#41623). Patch by Katsuya HIDAKA (user:hidakatsuya). git-svn-id: https://svn.redmine.org/redmine/trunk@23246 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/integration/api_test/users_test.rb b/test/integration/api_test/users_test.rb index 27772be29..e977379c0 100644 --- a/test/integration/api_test/users_test.rb +++ b/test/integration/api_test/users_test.rb @@ -20,7 +20,7 @@ require_relative '../../test_helper' class Redmine::ApiTest::UsersTest < Redmine::ApiTest::Base - fixtures :users, :groups_users, :email_addresses, :members, :member_roles, :roles, :projects + fixtures :users, :groups_users, :email_addresses, :members, :member_roles, :roles, :projects, :auth_sources test "GET /users.xml should return users" do users = User.active.order('login') diff --git a/test/unit/changeset_test.rb b/test/unit/changeset_test.rb index 655282189..af7e31531 100644 --- a/test/unit/changeset_test.rb +++ b/test/unit/changeset_test.rb @@ -20,8 +20,9 @@ require_relative '../test_helper' class ChangesetTest < ActiveSupport::TestCase - fixtures :projects, :repositories, + fixtures :projects, :repositories, :versions, :issues, :issue_statuses, :issue_categories, + :watchers, :journals, :journal_details, :workflows, :changesets, :changes, diff --git a/test/unit/lib/redmine/field_format/numeric_format_test.rb b/test/unit/lib/redmine/field_format/numeric_format_test.rb index 4e074feea..a3a30cf40 100644 --- a/test/unit/lib/redmine/field_format/numeric_format_test.rb +++ b/test/unit/lib/redmine/field_format/numeric_format_test.rb @@ -23,7 +23,7 @@ require 'redmine/field_format' class Redmine::NumericFieldFormatTest < ActionView::TestCase fixtures :projects, :users, :issue_statuses, :enumerations, :trackers, :projects_trackers, :roles, :member_roles, - :members, :enabled_modules + :members, :enabled_modules, :issues def setup User.current = nil