Alex Chaffee
unread,Jan 7, 2014, 2:42:42 PM1/7/14Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rs...@googlegroups.com
For a proper stub (canned return value, no validation) I prefer the
simple `stub` block syntax:
```
MyThingy.stub(:method) { |arg| 0 }
```
where 0 is, of course, your stubbed return value and |arg| is optional.
...however, your question is confusing. Is the class method in
question on your model or on your controller?