Project

General

Profile

Actions

Patch #33938

open

Add missing fixtures to IssueNestedSetTest

Added by Yuichi HARADA about 4 years ago. Updated about 4 years ago.

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

0%

Estimated time:

Description

Sometimes IssueNestedSetTest fails.

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

$ RAILS_ENV=test bundle exec rake test
Run options: --seed 43474

# Running:

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

Failure:
IssueNestedSetTest#test_destroy_should_destroy_children [./test/unit/issue_nested_set_test.rb:225]:
"JournalDetail.count" didn't change by -1.
Expected: 7
  Actual: 6

bin/rails test test/unit/issue_nested_set_test.rb:216

.........F

Failure:
IssueNestedSetTest#test_destroy_child_issue_with_children [./test/unit/issue_nested_set_test.rb:270]:
"JournalDetail.count" didn't change by -1.
Expected: 7
  Actual: 6

bin/rails test test/unit/issue_nested_set_test.rb:262

........

Finished in 410.935528s, 12.2404 runs/s, 56.5588 assertions/s.
5030 runs, 23242 assertions, 2 failures, 0 errors, 3 skips

You have skipped tests. Run with --verbose for details.
$
<pre>

Files

fixed-33938.patch (514 Bytes) fixed-33938.patch Yuichi HARADA, 2020-09-01 05:10
Actions

Also available in: Atom PDF