プロジェクト

全般

プロフィール

Vote #81586

完了

Add missing fixtures to Redmine::ProjectJumpBoxTest

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Code cleanup/refactoring_30
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
30
version_id:
155
issue_org_id:
35727
author_id:
362529
assigned_to_id:
332
comments:
2
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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

journals

It was solved with the following patch.

<pre><code class="diff">
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'
</code></pre>
--------------------------------------------------------------------------------
Committed the patch. Thank you.
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリCode cleanup/refactoring_30 にセット
  • 対象バージョン5.0.0_155 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0