Patch #37851

Add missing fixture to test/integration/issue_test.rb

Added by Dmitry Makurin about 1 month ago. Updated about 1 month ago.

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


Category:Code cleanup/refactoring
Target version:5.1.0


On a clean setup one test fails due to error:

IssuesTest#test_issue_attachments [/home/makurin/Work/redmine/test/test_helper.rb:224]:
Expected response to be a <3XX: redirect>, but was a <200: OK>

Log doesn't show exact why but it is a validation error on issue Issue category is not included in the list.

Reproducing by resetting test database and running tests in single file:

RAILS_ENV=test TEST=test/integration/issues_test.rb bundle exec rake db:reset test

After adding issue_categories fixture test passes.

diff --git a/test/integration/issues_test.rb b/test/integration/issues_test.rb
index 2895f4985..ba55b46fb 100644
--- a/test/integration/issues_test.rb
+++ b/test/integration/issues_test.rb
@@ -34,7 +34,8 @@ class IssuesTest < Redmine::IntegrationTest
            :custom_fields_trackers, :custom_fields_projects,
-           :attachments
+           :attachments,
+           :issue_categories

   # create an issue
   def test_add_issue

Associated revisions

Revision 21932
Added by Go MAEDA about 1 month ago

Add missing fixture to test/integration/issue_test.rb (#37851).

Patch by Dmitry Makurin.


#1 Updated by Go MAEDA about 1 month ago

  • Tracker changed from Defect to Patch
  • Category set to Code cleanup/refactoring
  • Target version set to 5.1.0

#2 Updated by Go MAEDA about 1 month ago

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

Committed the fix. Thank you.

Also available in: Atom PDF