mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-01 03:57:15 +00:00
Fixes random test failure in DestroyProjectsJobTest due to unsorted @projects (#41901).
Patch by Katsuya HIDAKA (user:hidakatsuya) git-svn-id: https://svn.redmine.org/redmine/trunk@23329 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
018d89bf8a
commit
7658997150
@ -23,7 +23,7 @@ class DestroyProjectsJobTest < ActiveJob::TestCase
|
||||
fixtures :users, :projects, :email_addresses
|
||||
|
||||
setup do
|
||||
@projects = Project.where(id: [1, 2]).to_a
|
||||
@projects = Project.where(id: [1, 2]).order(:id).to_a
|
||||
@user = User.find_by_admin true
|
||||
ActionMailer::Base.deliveries.clear
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user