Patch #34976

Add missing fixtures to TimeEntryCustomFieldTest

Added by Go MAEDA 15 days ago. Updated 15 days ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:Code cleanup/refactoring
Target version:5.0.0

Description

The test fails randomly due to missing fixtures.

$ bin/rails db:reset RAILS_ENV=test
$ bin/rails test test/unit/time_entry_custom_field_test.rb:49
Run options: --seed 42338

# Running:

F

Failure:
TimeEntryCustomFieldTest#test_safe_attributes_should_include_only_custom_fields_visible_to_user [/Users/maeda/redmines/redmine-trunk/test/unit/time_entry_custom_field_test.rb:64]:
Expected: "value1" 
  Actual: nil

bin/rails test test/unit/time_entry_custom_field_test.rb:49

add-missing-fixtures.patch Magnifier (536 Bytes) Go MAEDA, 2021-03-28 09:59

Associated revisions

Revision 20870
Added by Go MAEDA 15 days ago

Add missing fixtures to TimeEntryCustomFieldTest (#34976).

Patch by Go MAEDA.

History

#1 Updated by Go MAEDA 15 days ago

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

Committed the patch.

Also available in: Atom PDF