プロジェクト

全般

プロフィール

Vote #80989

完了

Add missing fixture to TimelogControllerTest

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

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

0%

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

説明

TimelogControllerTest has failed.

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

$ RAILS_ENV=test bundle exec rake test TEST=test/functional/timelog_controller_test.rb
Run options: --seed 11128

# Running:

........................................................S.................E

Error:
TimelogControllerTest#test_get_edit_with_an_existing_time_entry_with_locked_user:
ActiveRecord::RecordInvalid: Validation failed: Email cannot be blank
    test/functional/timelog_controller_test.rb:202:in `test_get_edit_with_an_existing_time_entry_with_locked_user'


bin/rails test test/functional/timelog_controller_test.rb:196

..................................

Finished in 6.473718s, 16.8373 runs/s, 51.5932 assertions/s.
109 runs, 334 assertions, 0 failures, 1 errors, 1 skips

You have skipped tests. Run with --verbose for details.

The cause was an insufficient fixture.


diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb
index 3b7e10bde..77b2cd66e 100644
--- a/test/functional/timelog_controller_test.rb
+++ b/test/functional/timelog_controller_test.rb
@@ -21,7 +21,7 @@ require File.expand_path('../../test_helper', __FILE__)

 class TimelogControllerTest < Redmine::ControllerTest
   fixtures :projects, :enabled_modules, :roles, :members,
-           :member_roles, :issues, :time_entries, :users,
+           :member_roles, :issues, :time_entries, :users, :email_addresses,
            :trackers, :enumerations, :issue_statuses,
            :custom_fields, :custom_values,
            :projects_trackers, :custom_fields_trackers,

journals

Committed the fix. Thank you.
--------------------------------------------------------------------------------

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

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

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

いいね!0
いいね!0