Re: [rspec-users] Trouble stubbing a method

2007-11-13 Thread Scott Taylor
On Nov 13, 2007, at 3:23 PM, Matthew Lins wrote: > Hey guys, > > I'll try to explain this without the model code at first, since > there is so > much, but if need be, I'll pastie it. > > I have an Order model that makes API calls to a payment > gateway(TrustCommerce) during validation(to verify

Re: [rspec-users] Trouble stubbing a method

2007-11-13 Thread Matthew Lins
BTW...When I say, "this doesn't work" I mean the spec fails on the mock, saying the method was never called. But, indeed it was, I can verify it by the TrustCommerce logs. On 11/13/07 2:23 PM, "Matthew Lins" <[EMAIL PROTECTED]> wrote: > Hey guys, > > I'll try to explain this without the model

[rspec-users] Trouble stubbing a method

2007-11-13 Thread Matthew Lins
Hey guys, I'll try to explain this without the model code at first, since there is so much, but if need be, I'll pastie it. I have an Order model that makes API calls to a payment gateway(TrustCommerce) during validation(to verify the credit card information). I'd like to stub this behavior to av