Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
One more simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Aug 6, 2019
1 parent 742d4bf commit 86ca451
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/support/helpers.rb
Expand Up @@ -192,9 +192,8 @@ def load_error_ruby(ruby, name, opts = {})
end

def gembin(cmd)
bundler_setup = File.expand_path("#{Path.lib}/bundler/setup", __FILE__)
old = ENV["RUBYOPT"]
ENV["RUBYOPT"] = "#{ENV["RUBYOPT"]} -I#{Path.lib} -r#{bundler_setup}"
ENV["RUBYOPT"] = "#{ENV["RUBYOPT"]} -I#{Path.lib} -r#{Path.lib}/bundler/setup"
cmd = bundled_app("bin/#{cmd}") unless cmd.to_s.include?("/")
sys_exec(cmd.to_s)
ensure
Expand Down

0 comments on commit 86ca451

Please sign in to comment.