Re: [rspec-users] Noob (mock/stub) ActiveMerchant..

2011-10-31 Thread Justin Ko
On Oct 28, 2011, at 10:16 AM, internetchris wrote: > Hi Group > > I'm still waiting for the light to come on with stubbing/mocking and > the syntax for each. I have simple method in my Order class like > so > > def credit_card >ActiveMerchant::Billing::CreditCard.new( > :type

Re: [rspec-users] Specs failing when run outside Spork with TypeError: superclass mismatch for class Attribute

2011-10-31 Thread David Chelimsky
On Oct 31, 2011, at 4:59 AM, Jakub Arnold wrote: > When I run my specs inside spork, they all just pass without any > problems, but once I try to run them without spork, I end up with > > Failure/Error: Unable to find matching line from backtrace > TypeError: > superclass mismatch f

[rspec-users] Noob (mock/stub) ActiveMerchant..

2011-10-31 Thread internetchris
Hi Group I'm still waiting for the light to come on with stubbing/mocking and the syntax for each. I have simple method in my Order class like so def credit_card ActiveMerchant::Billing::CreditCard.new( :type => card_type, :number => card_number,

[rspec-users] Specs failing when run outside Spork with TypeError: superclass mismatch for class Attribute

2011-10-31 Thread Jakub Arnold
When I run my specs inside spork, they all just pass without any problems, but once I try to run them without spork, I end up with Failure/Error: Unable to find matching line from backtrace TypeError: superclass mismatch for class Attribute on each request spec. Here's a gist wi