Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 3rd, 2012  |  syntax: None  |  size: 2.81 KB  |  hits: 33  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. 1) BillingIntegration::Skrill::QuickCheckout redirect_url should return url
  2.      Failure/Error: payment_method.redirect_url(order).should == "#{ActiveMerchant::Billing::Skrill.new.service_url}?sid=123"
  3.        expected: "https://www.moneybookers.com/app/payment.pl?sid=123"
  4.             got: "https://www.moneybookers.com/app/payment.pl?server=test&test_mode=true&merchant_id=&language=EN&currency=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 ==)
  5.      # ./spec/models/billing_integration/skrill_spec.rb:10:in `block (3 levels) in <top (required)>'
  6.  
  7.   2) CheckoutController during payment selection on checkout should setup a purchase transaction and redirect
  8.      Failure/Error: response.should redirect_to 'https://www.moneybookers.com/app/payment.pl?sid=abc123'
  9.        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>
  10.      # ./spec/controllers/checkout_controller_spec.rb:24:in `block (3 levels) in <top (required)>'
  11.  
  12.   3) CheckoutController with response from Skrill should redirect to cart on cancel
  13.      Failure/Error: response.should redirect_to edit_order_url(order)
  14.        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>
  15.      # ./spec/controllers/checkout_controller_spec.rb:39:in `block (3 levels) in <top (required)>'
  16.  
  17.   4) CheckoutController with response from Skrill should complete order on first success
  18.      Failure/Error: get :skrill_success, :order_id => order.number
  19.      NoMethodError:
  20.        undefined method `token' for #<Order:0xc72d7a4>
  21.      # ./app/controllers/checkout_controller_decorator.rb:10:in `skrill_success'
  22.      # ./spec/controllers/checkout_controller_spec.rb:46:in `block (3 levels) in <top (required)>'
  23.  
  24. Finished in 24.44 seconds
  25. 6 examples, 4 failures, 1 pending
  26.  
  27. Failed examples:
  28.  
  29. rspec ./spec/models/billing_integration/skrill_spec.rb:8 # BillingIntegration::Skrill::QuickCheckout redirect_url should return url
  30. rspec ./spec/controllers/checkout_controller_spec.rb:19 # CheckoutController during payment selection on checkout should setup a purchase transaction and redirect
  31. rspec ./spec/controllers/checkout_controller_spec.rb:36 # CheckoutController with response from Skrill should redirect to cart on cancel
  32. rspec ./spec/controllers/checkout_controller_spec.rb:42 # CheckoutController with response from Skrill should complete order on first success