Project

General

Profile

Patch #41623 ยป Fixed-tests-that-randomly-failed-due-to-required-fixtures-not-being-loaded.patch

Katsuya HIDAKA, 2024-10-30 02:45

View differences:

test/integration/api_test/users_test.rb
20 20
require_relative '../../test_helper'
21 21

  
22 22
class Redmine::ApiTest::UsersTest < Redmine::ApiTest::Base
23
  fixtures :users, :groups_users, :email_addresses, :members, :member_roles, :roles, :projects
23
  fixtures :users, :groups_users, :email_addresses, :members, :member_roles, :roles, :projects, :auth_sources
24 24

  
25 25
  test "GET /users.xml should return users" do
26 26
    users = User.active.order('login')
test/unit/changeset_test.rb
20 20
require_relative '../test_helper'
21 21

  
22 22
class ChangesetTest < ActiveSupport::TestCase
23
  fixtures :projects, :repositories,
23
  fixtures :projects, :repositories, :versions,
24 24
           :issues, :issue_statuses, :issue_categories,
25
           :watchers,
25 26
           :journals, :journal_details,
26 27
           :workflows,
27 28
           :changesets, :changes,
test/unit/lib/redmine/field_format/numeric_format_test.rb
23 23
class Redmine::NumericFieldFormatTest < ActionView::TestCase
24 24
  fixtures :projects, :users, :issue_statuses, :enumerations,
25 25
           :trackers, :projects_trackers, :roles, :member_roles,
26
           :members, :enabled_modules
26
           :members, :enabled_modules, :issues
27 27

  
28 28
  def setup
29 29
    User.current = nil
    (1-1/1)