Skip to content

Commit

Permalink
Don't require spec_helper twice.
Browse files Browse the repository at this point in the history
This already set in .rspec config file.
  • Loading branch information
futhr committed Jan 5, 2015
1 parent 2d45d93 commit e4ceffd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
4 changes: 1 addition & 3 deletions spec/controllers/paypal_controller_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

describe Spree::PaypalController do

# Regression tests for #55
Expand Down Expand Up @@ -30,4 +28,4 @@
end
end
end
end
end
2 changes: 0 additions & 2 deletions spec/features/paypal_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

describe "PayPal", :js => true do
let!(:product) { FactoryGirl.create(:product, :name => 'iPad') }
before do
Expand Down
4 changes: 1 addition & 3 deletions spec/models/pay_pal_express_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

describe Spree::Gateway::PayPalExpress do
let(:gateway) { Spree::Gateway::PayPalExpress.create!(name: "PayPalExpress", :environment => Rails.env) }

Expand Down Expand Up @@ -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.")
Expand Down

0 comments on commit e4ceffd

Please sign in to comment.