- 1) BillingIntegration::Skrill::QuickCheckout redirect_url should return url
- Failure/Error: payment_method.redirect_url(order).should == "#{ActiveMerchant::Billing::Skrill.new.service_url}?sid=123"
- expected: "https://www.moneybookers.com/app/payment.pl?sid=123"
- got: "https://www.moneybookers.com/app/payment.pl?server=test&test_mode=true&merchant_id=&language=EN¤cy=EUR&payment_options=ACC&recipient_description=Spree+Demo+Site&payment_methods=ACC&detail1_text=R150052044&detail1_description=Order+Number%3A&pay_from_email=marco%40carrollkerluke.name&firstname=John&lastname=Doe&address=10+Lovely+Street&address2=Northwest&phone_number=123-456-7890&city=Herndon&postal_code=20170&state=AL&country=United+States&hide_login=1&merchant_fields=platform&platform=Spree" (using ==)
- # ./spec/models/billing_integration/skrill_spec.rb:10:in `block (3 levels) in <top (required)>'
- 2) CheckoutController during payment selection on checkout should setup a purchase transaction and redirect
- Failure/Error: response.should redirect_to 'https://www.moneybookers.com/app/payment.pl?sid=abc123'
- Expected response to be a redirect to <https://www.moneybookers.com/app/payment.pl?sid=abc123> but was a redirect to <http://test.host/checkout/skrill>
- # ./spec/controllers/checkout_controller_spec.rb:24:in `block (3 levels) in <top (required)>'
- 3) CheckoutController with response from Skrill should redirect to cart on cancel
- Failure/Error: response.should redirect_to edit_order_url(order)
- Expected response to be a redirect to <http://test.host/orders/R661326244/edit> but was a redirect to <http://test.host/orders/R661326244/checkout/edit?state=payment>
- # ./spec/controllers/checkout_controller_spec.rb:39:in `block (3 levels) in <top (required)>'
- 4) CheckoutController with response from Skrill should complete order on first success
- Failure/Error: get :skrill_success, :order_id => order.number
- NoMethodError:
- undefined method `token' for #<Order:0xc72d7a4>
- # ./app/controllers/checkout_controller_decorator.rb:10:in `skrill_success'
- # ./spec/controllers/checkout_controller_spec.rb:46:in `block (3 levels) in <top (required)>'
- Finished in 24.44 seconds
- 6 examples, 4 failures, 1 pending
- Failed examples:
- rspec ./spec/models/billing_integration/skrill_spec.rb:8 # BillingIntegration::Skrill::QuickCheckout redirect_url should return url
- rspec ./spec/controllers/checkout_controller_spec.rb:19 # CheckoutController during payment selection on checkout should setup a purchase transaction and redirect
- rspec ./spec/controllers/checkout_controller_spec.rb:36 # CheckoutController with response from Skrill should redirect to cart on cancel
- rspec ./spec/controllers/checkout_controller_spec.rb:42 # CheckoutController with response from Skrill should complete order on first success