Patch #33700

Add missing fixture to Redmine::ApiTest::ProjectsTest

Added by Go MAEDA about 1 month ago. Updated about 1 month ago.

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

0%

Category:Code cleanup/refactoring
Target version:4.2.0

Description

The attached patch fixes the following error.

$ bin/rails db:reset RAILS_ENV=test
$ bin/rails test test/integration/api_test/projects_test.rb:86
Run options: --seed 19242

# Running:

F

Failure:
Redmine::ApiTest::ProjectsTest#test_GET_/projects.xml_with_include=issue_custom_fields_should_return_custom_fields [/path/to/redmine/test/integration/api_test/projects_test.rb:91]:
Expected at least 1 element matching "issue_custom_fields[type=array] custom_field[name="Project 1 cf"]", found 0..
Expected 0 to be >= 1.

bin/rails test test/integration/api_test/projects_test.rb:86

fix_projects_test.patch Magnifier (832 Bytes) Go MAEDA, 2020-07-06 09:36

Associated revisions

Revision 19877
Added by Go MAEDA about 1 month ago

Add missing fixture to Redmine::ApiTest::ProjectsTest (#33700).

Patch by Go MAEDA.

History

#1 Updated by Go MAEDA about 1 month ago

  • Tracker changed from Defect to Patch
  • Subject changed from Redmine::ApiTest::ProjectsTest may fail due to missing fixture to Add missing fixture to Redmine::ApiTest::ProjectsTest
  • Target version changed from Candidate for next major release to 4.2.0

Setting the target version to 4.2.0.

#2 Updated by Go MAEDA about 1 month ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA

Committed the fix.

Also available in: Atom PDF