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
uninitialized constant Session
An example of my usage:
@session = mock_model(Session)
organic brains. digital solutions.