[rspec-users] Mocking models provided in Rails plugins
robertrevans at gmail.com
Fri Oct 19 03:16:05 EDT 2007
Dan, you can take a look at what *court3nay did, here:
On 10/18/07, Brandon Keepers <bkeepers at gmail.com> wrote:
> On Oct 18, 2007, at 6:14 PM, Dan Croak wrote:
> > Hey folks,
> > How do I mock a model that is given to me by a Rails plugin? I'm
> > trying to mock Session from the restful_authentication plugin but I
> > get a number of errors telling me RSpec doesn't recognize Session.
> > NameError in 'SessionsController handling GET /sessions/new should
> > be successful'
> > uninitialized constant Session
> Your problem is that the class isn't just Session, it's
> rspec-users mailing list
> rspec-users at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users