Project

General

Profile

Actions

Patch #36347

closed

Add missing fixture to IssuesHelperTest

Added by Yuichi HARADA over 2 years ago. Updated over 2 years ago.

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

0%

Estimated time:

Description

IssuesHelperTest has failed. If you run the commands (rake db:migrate:reset, the test with seed value) in the following order, the test will always fail.

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

% RAILS_ENV=test bundle exec rake test TESTOPTS="--seed 57576" 
(Test LDAP server not configured)
Bazaar non ASCII output test cannot run on this environment.
Encoding.locale_charmap: UTF-8
Skipping LDAP tests.
Run options: --seed 57576

# Running:

.....F

Failure:
IssuesHelperTest#test_render_relations_stats [test/helpers/issues_helper_test.rb:435]:
"<a href="/issues?issue_id=16%2C17&amp;set_filter=true&amp;status_id=o">1 open</a>" not found in "<span class="issues-stat"><span class="badge badge-issues-count"><a href="/issues?issue_id=16%2C17&amp;set_filter=true&amp;status_id=%2A">2</a></span> (<span class="open"><a href="/issues?issue_id=16%2C17&amp;set_filter=true&amp;status_id=o">2 open</a></span> &#8212; <span class="closed">0 closed</span>)</span>" 

rails test test/helpers/issues_helper_test.rb:421

...............F

Failure:
IssuesHelperTest#test_render_descendants_stats [test/helpers/issues_helper_test.rb:417]:
"<a href="/issues?parent_id=~15&amp;set_filter=true&amp;status_id=o">1 open</a>" not found in "<span class="issues-stat"><span class="badge badge-issues-count"><a href="/issues?parent_id=~15&amp;set_filter=true&amp;status_id=%2A">2</a></span> (<span class="open"><a href="/issues?parent_id=~15&amp;set_filter=true&amp;status_id=o">2 open</a></span> &#8212; <span class="closed">0 closed</span>)</span>" 

rails test test/helpers/issues_helper_test.rb:409

..........


Files

36347.patch (491 Bytes) 36347.patch Yuichi HARADA, 2021-12-22 07:28
Actions

Also available in: Atom PDF