[rspec-users] Mocking ActiveResource

Matthijs Langenberg mlangenberg at gmail.com
Wed Feb 7 03:53:20 EST 2007

I think you need to stub the ActiveResource methods like 'create' and
'find', assuming the ActiveResource library is well tested you should
be able to test only the behaviour you are writing instead of the REST

On 2/7/07, Pat Maddox <pergesu at gmail.com> wrote:
> I want to use ActiveResource in my app.  Instead of hitting server
> though, I want it to load from a file when I call find.  Any clue how
> I do that?
> Pat
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

More information about the rspec-users mailing list