From ab870dc7b25188f672f13efb75911136588440d8 Mon Sep 17 00:00:00 2001 From: Katsuya Hidaka Date: Mon, 28 Oct 2024 12:33:48 +0900 Subject: [PATCH 1/4] Fixed tests that randomly failed due to required fixtures not being loaded --- test/integration/api_test/users_test.rb | 2 +- test/unit/changeset_test.rb | 3 ++- test/unit/lib/redmine/field_format/numeric_format_test.rb | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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 -- 2.44.0