Testing Rails Metal With Cucumber/rSpec

Posted by nkabbara on Stack Overflow See other posts from Stack Overflow or by nkabbara
Published on 2010-03-17T21:55:28Z Indexed on 2010/03/17 22:01 UTC
Read the original article Hit count: 352

Filed under:
|
|

Hi,

I'm trying to stub a third party service that my metal talks to. It seems rspec mocks/stubs don't extend all the way to the Metal.

When I call stubbed methods on objects, it calls the original one and not the stubbed one.

Any idea of how I can have rSpec doubles extend all the way to the metal?

Thanks.

-Nash

© Stack Overflow or respective owner

Related posts about cucumber

Related posts about rspec