Re: [rspec-users] Mock/stub ActiveMerchant? (or other cascading/multiple inheritance situation)

2011-04-30 Thread David Kahn
On Fri, Apr 29, 2011 at 10:05 PM, Rodrigo Rosenfeld Rosas lboc...@yahoo.com.br wrote: Em 29-04-2011 13:15, David Kahn escreveu: On Thu, Apr 28, 2011 at 8:03 PM, Pat Maddox patmad...@me.com wrote: On Apr 28, 2011, at 4:37 PM, David Kahn wrote: I am a bit new to mocking. I am trying to

Re: [rspec-users] Mock/stub ActiveMerchant? (or other cascading/multiple inheritance situation)

2011-04-29 Thread David Kahn
On Thu, Apr 28, 2011 at 8:03 PM, Pat Maddox patmad...@me.com wrote: On Apr 28, 2011, at 4:37 PM, David Kahn wrote: I am a bit new to mocking. I am trying to stub the ActiveMerchant::Billing::PaypalGateway#authorize method but not clear how to do it. This is my code and spec. This is the

Re: [rspec-users] Mock/stub ActiveMerchant? (or other cascading/multiple inheritance situation)

2011-04-29 Thread Rodrigo Rosenfeld Rosas
Em 29-04-2011 13:15, David Kahn escreveu: On Thu, Apr 28, 2011 at 8:03 PM, Pat Maddox patmad...@me.com mailto:patmad...@me.com wrote: On Apr 28, 2011, at 4:37 PM, David Kahn wrote: I am a bit new to mocking. I am trying to stub the

[rspec-users] Mock/stub ActiveMerchant? (or other cascading/multiple inheritance situation)

2011-04-28 Thread David Kahn
I am a bit new to mocking. I am trying to stub the ActiveMerchant::Billing::PaypalGateway#authorize method but not clear how to do it. This is my code and spec. This is the pertinent code: module Payment def gateway ActiveMerchant::Billing::PaypalGateway.new( ... ) end def

Re: [rspec-users] Mock/stub ActiveMerchant? (or other cascading/multiple inheritance situation)

2011-04-28 Thread Pat Maddox
On Apr 28, 2011, at 4:37 PM, David Kahn wrote: I am a bit new to mocking. I am trying to stub the ActiveMerchant::Billing::PaypalGateway#authorize method but not clear how to do it. This is my code and spec. This is the pertinent code: module Payment def gateway