spec/paypal/express/response_spec.rb in creative-paypal-express-0.8.2.4 vs spec/paypal/express/response_spec.rb in creative-paypal-express-1.0.0

- old
+ new

@@ -1,7 +1,6 @@ -require 'spec_helper.rb' - +# rspec spec/paypal/express/response_spec.rb describe Paypal::Express::Response do before { fake_response 'SetExpressCheckout/success' } let(:return_url) { 'http://example.com/success' } let(:cancel_url) { 'http://example.com/cancel' } @@ -11,20 +10,22 @@ :password => 'password', :signature => 'sig' ) end let :payment_request do - Paypal::Payment::Request.new( + Paypal::Payment::Request.new( :billing_type => :RecurringPayments, :billing_agreement_description => 'Recurring Payment Request' ) end let(:response) { request.setup payment_request, return_url, cancel_url } describe '#redirect_uri' do subject { response.redirect_uri } - it { should include 'https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=' } + it do + should include 'https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=' + end end describe '#popup_uri' do subject { response.popup_uri } it { should include 'https://www.paypal.com/incontext?token=' } @@ -75,6 +76,6 @@ subject { response.redirect_uri } it { should include 'https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout-mobile&token=' } end end -end \ No newline at end of file +end