Hi I am trying to integrate Active merchant in my rails project to implement the Paypal recurring express checkout option for online payments. I am trying to integration tests and am not being able to determine how to mock the PaypalExpressResponse class. When I try this @response = mock(ActiveMerchant::Billing::PaypalExpressResponse, :token=>''fake_paypal_token'') RECURRING_GATEWAY.stub(:authorization).and_return(@response) I get this error in when I run my tests Mock ActiveMerchant::Billing::PaypalExpressResponse received unexpected message :recycle! with (no args) What am I doing wrong? I am quite new to rails and am not being able to find much help anywhere. Any direction would be greatly appreciated. Thank you! -- View this message in context: http://old.nabble.com/Active-Merchant-Integration-tp31723606p31723606.html Sent from the RubyOnRails Users mailing list archive at Nabble.com. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.