diff --git a/spec/controllers/paypal_controller_spec.rb b/spec/controllers/paypal_controller_spec.rb index 8418399f..5cd68910 100644 --- a/spec/controllers/paypal_controller_spec.rb +++ b/spec/controllers/paypal_controller_spec.rb @@ -1,5 +1,3 @@ -require 'spec_helper' - describe Spree::PaypalController do # Regression tests for #55 @@ -30,4 +28,4 @@ end end end -end \ No newline at end of file +end diff --git a/spec/features/paypal_spec.rb b/spec/features/paypal_spec.rb index 78540457..e7fc1fd9 100644 --- a/spec/features/paypal_spec.rb +++ b/spec/features/paypal_spec.rb @@ -1,5 +1,3 @@ -require 'spec_helper' - describe "PayPal", :js => true do let!(:product) { FactoryGirl.create(:product, :name => 'iPad') } before do diff --git a/spec/models/pay_pal_express_spec.rb b/spec/models/pay_pal_express_spec.rb index 761bbe26..aa8808c4 100644 --- a/spec/models/pay_pal_express_spec.rb +++ b/spec/models/pay_pal_express_spec.rb @@ -1,5 +1,3 @@ -require 'spec_helper' - describe Spree::Gateway::PayPalExpress do let(:gateway) { Spree::Gateway::PayPalExpress.create!(name: "PayPalExpress", :environment => Rails.env) } @@ -53,7 +51,7 @@ # Test for #4 it "fails" do - response = double('pp_response', :success? => false, + response = double('pp_response', :success? => false, :errors => [double('pp_response_error', :long_message => "An error goes here.")]) provider.should_receive(:do_express_checkout_payment).and_return(response) lambda { payment.purchase! }.should raise_error(Spree::Core::GatewayError, "An error goes here.")