Active Merchant Integration


I am trying to integrate Active merchant in my rails project to
the Paypal recurring express checkout option for online payments.

I am trying to integration tests and am not being able to determine how
mock the PaypalExpressResponse class. When I try this

@response = mock(ActiveMerchant::Billing::PaypalExpressResponse,

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
much help anywhere. Any direction would be greatly appreciated.

Thank you!

View this message in context:
Sent from the RubyOnRails Users mailing list archive at