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

2011-04-29 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 wrote: > >> On Apr 28, 2011, at 4:37 PM, David Kahn wrote: >> >> > I am a bit new to mocking. I am trying to st

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 > 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

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 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 pertin

Re: [rspec-users] Parallelize RSpec

2011-04-29 Thread Adam Esterline
On Fri, Apr 29, 2011 at 3:52 AM, Sidu Ponnappa wrote: > Wouldn't using threads require that the code being tested also be threadsafe? Yes.In my case, we are testing a web application through the browser (regression tests).If the web application is not thread safe, we want to know about it

Re: [rspec-users] Parallelize RSpec

2011-04-29 Thread Rodrigo Rosenfeld Rosas
Em 29-04-2011 00:19, Adam Esterline escreveu: Both https://github.com/test-load-balancer and https://github.com/grosser/parallel_tests seem more complicated than needed.They both require other moving parts (database; other server).It seems now with ruby 1.9 and jruby a simpler solution (m

Re: [rspec-users] Parallelize RSpec

2011-04-29 Thread Hedge Hog
On Fri, Apr 29, 2011 at 1:19 PM, Adam Esterline wrote: > Both https://github.com/test-load-balancer and > https://github.com/grosser/parallel_tests seem more complicated than > needed.    They both require other moving parts (database; other > server).    It seems now with ruby 1.9 and jruby a sim

Re: [rspec-users] Parallelize RSpec

2011-04-29 Thread Sidu Ponnappa
Wouldn't using threads require that the code being tested also be threadsafe? Best, Sidu. http://c42.in http://about.me/ponnappa On 29 April 2011 08:49, Adam Esterline wrote: > Both https://github.com/test-load-balancer and > https://github.com/grosser/parallel_tests seem more complicated than >