Project

General

Profile

Actions

Defect #4056

closed

Rename named_scope :public for Project to something else

Added by Dmitri Kouikoff about 15 years ago. Updated about 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Projects
Target version:
Start date:
2009-10-19
Due date:
% Done:

100%

Estimated time:
Resolution:
Fixed
Affected version:

Description

As the word public is reserved in ruby, the attempt to mock/stub the model Project fails, since the line that introduces a new public method fails due to the fact that word 'public' is redefined by the named_scope.

I suspect you may meet the case while setting up the shoulda.

Actions

Also available in: Atom PDF