Project

General

Profile

Actions

Patch #37851

closed

Add missing fixture to test/integration/issue_test.rb

Added by Dmitry Makurin about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Code cleanup/refactoring
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

On a clean setup one test fails due to error:

Failure:
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,
            :custom_values,
            :custom_fields_trackers, :custom_fields_projects,
-           :attachments
+           :attachments,
+           :issue_categories

   # create an issue
   def test_add_issue
Actions

Also available in: Atom PDF