Project

General

Profile

Actions

Patch #15420

closed

Don't create duplicate wikis in tests

Added by George Gensure about 11 years ago. Updated about 11 years ago.

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

0%

Estimated time:

Description

test/fixtures/wikis.yml includes the unnecessary wiki wikis_002. test/unit/wiki_test.rb's test_create attempts to create an identical wiki, likely being the cause of this entry's inclusion. Its invalidity is that it creates a second wiki entry for project id 2, a violation of the has_one relationship between them. This was noticed with the addition of significant UNIQUE indices across a PostgreSQL instance of redmine and unit tests, where the mentioned test fails with the fixture in place.

Recommended patch is attached.


Files

wikis.patch (322 Bytes) wikis.patch George Gensure, 2013-11-20 23:03
wikis.patch (1.07 KB) wikis.patch George Gensure, 2013-11-21 17:33
Actions

Also available in: Atom PDF