Gareth, The paid named_scope in the example is on the LineItem model so stubbing that out would not be stubbing out the object under test.
The test that checks that the paid named_scope works will be in the LineItem spec folder so I'm happy to stub the named_scope out if there is a nice way to do that. Scott -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To view this discussion on the web visit https://groups.google.com/d/msg/rails-oceania/-/C833WrZ66dgJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
