Skip to content

Commit

Permalink
Require bundler/setup rather than calling Bundler.setup.
Browse files Browse the repository at this point in the history
This allows bundler standalone to be used if the bundle dir
is added to the load path.
  • Loading branch information
myronmarston committed Dec 24, 2012
1 parent 18c187a commit ba820c6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
SimpleCov.start do
add_filter "/spec"
add_filter "/features"
add_filter "/bin"
add_filter "/bundle"

# internet_connection mostly contains logic copied from the ruby 1.8.7
# stdlib for which I haven't written tests.
Expand All @@ -21,10 +23,7 @@
end

using_git = File.exist?(File.expand_path('../../.git/', __FILE__))
if using_git
require 'bundler'
Bundler.setup
end
require 'bundler/setup' if using_git

require 'rspec'

Expand Down

0 comments on commit ba820c6

Please sign in to comment.