Defect #119

Test in method project in Attachment Model useless

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

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
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.

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

History

#1 Updated by Jean-Philippe Lang almost 10 years ago

Not a critical bug, but the fix is committed in r934.

Thanks

Also available in: Atom PDF