Project

General

Profile

Actions

Defect #119

closed

Test in method project in Attachment Model useless

Added by Cyril Mougel about 17 years ago. Updated almost 17 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

Hi,

I test a code coverage and I see a method with a test useless for me. In the Attachment Model, I see the method :

def project
container.is_a?(Project) ? container : container.project
end

After an inspection of code a container can't be a Project, because a project has not association with an Attachment.

This method has added in changeset 541 of Subversion.

I submit a patch attach to this bug.


Files

delete_useless_test.diff (344 Bytes) delete_useless_test.diff Cyril Mougel, 2008-02-03 10:52
Actions

Also available in: Atom PDF