Project

General

Profile

Actions

Patch #35727

closed

Add missing fixtures to Redmine::ProjectJumpBoxTest

Added by Yuichi HARADA about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Code cleanup/refactoring
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Redmine::ProjectJumpBoxTest has failed.

% RAILS_ENV=test bundle exec rake db:migrate:reset

% RAILS_ENV=test bundle exec rake test TEST=test/unit/lib/redmine/project_jump_box_test.rb
Run options: --seed 29081

# Running:

.F

Failure:
Redmine::ProjectJumpBoxTest#test_should_update_recents_list [test/unit/lib/redmine/project_jump_box_test.rb:134]:
Expected: 2
  Actual: 1

rails test test/unit/lib/redmine/project_jump_box_test.rb:119

F

Failure:
Redmine::ProjectJumpBoxTest#test_should_limit_recently_used_projects [test/unit/lib/redmine/project_jump_box_test.rb:61]:
Expected: 1
  Actual: 0

rails test test/unit/lib/redmine/project_jump_box_test.rb:54

F

Failure:
Redmine::ProjectJumpBoxTest#test_should_record_recently_used_projects_order [test/unit/lib/redmine/project_jump_box_test.rb:71]:
Expected: 2
  Actual: 1

rails test test/unit/lib/redmine/project_jump_box_test.rb:64

....

Finished in 0.942857s, 8.4848 runs/s, 29.6970 assertions/s.
8 runs, 28 assertions, 3 failures, 0 errors, 0 skips

Files

35727.patch (582 Bytes) 35727.patch Yuichi HARADA, 2021-08-10 03:42
Actions #1

Updated by Yuichi HARADA about 3 years ago

It was solved with the following patch.

diff --git a/test/unit/lib/redmine/project_jump_box_test.rb b/test/unit/lib/redmine/project_jump_box_test.rb
index 9edc948e0c..7c087322d3 100644
--- a/test/unit/lib/redmine/project_jump_box_test.rb
+++ b/test/unit/lib/redmine/project_jump_box_test.rb
@@ -20,7 +20,7 @@
 require File.expand_path('../../../../test_helper', __FILE__)

 class Redmine::ProjectJumpBoxTest < ActiveSupport::TestCase
-  fixtures :users, :projects, :user_preferences
+  fixtures :users, :projects, :user_preferences, :members, :roles, :member_roles

   def setup
     @user = User.find_by_login 'jsmith'
Actions #2

Updated by Go MAEDA about 3 years ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Target version set to 5.0.0

Committed the patch. Thank you.

Actions

Also available in: Atom PDF