summaryrefslogtreecommitdiff
path: root/spec/support/helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/helpers.rb')
-rw-r--r--spec/support/helpers.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb
index a1c202f45e..57b62710bc 100644
--- a/spec/support/helpers.rb
+++ b/spec/support/helpers.rb
@@ -72,7 +72,8 @@ module Spec
def gembin(cmd)
lib = File.expand_path("../../../lib", __FILE__)
old, ENV['RUBYOPT'] = ENV['RUBYOPT'], "#{ENV['RUBYOPT']} -I#{lib}"
- sys_exec(bundled_app("bin/#{cmd}"))
+ cmd = bundled_app("bin/#{cmd}") unless cmd.to_s.include?("/")
+ sys_exec(cmd.to_s)
ensure
ENV['RUBYOPT'] = old
end