From e4ceffd5951c575b8f22924685f5ab5dde0896e7 Mon Sep 17 00:00:00 2001 From: Tobias Bohwalli Date: Mon, 5 Jan 2015 12:15:53 +0100 Subject: [PATCH] Don't require spec_helper twice. This already set in .rspec config file. --- spec/controllers/paypal_controller_spec.rb | 4 +--- spec/features/paypal_spec.rb | 2 -- spec/models/pay_pal_express_spec.rb | 4 +--- 3 files changed, 2 insertions(+), 8 deletions(-) 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.")