Skip to content

Commit

Permalink
fixes compatibility with guard-bundler
Browse files Browse the repository at this point in the history
Changes instances of Bundler to ::Bundler to prevent it from attempting
to reference Guard::Bundler.
  • Loading branch information
Geoff Lanotte committed Oct 13, 2013
1 parent 4dbb9e3 commit 8f71c5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/guard/rspec/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def _run(paths, failed_paths, options)
end

def _without_bundler_env
if defined?(Bundler)
Bundler.with_clean_env { yield }
if defined?(::Bundler)
::Bundler.with_clean_env { yield }
else
yield
end
Expand Down

0 comments on commit 8f71c5e

Please sign in to comment.