diff --git a/lib/helpers/gem_exec.rb b/lib/helpers/gem_exec.rb index 0bb7311b4..f5b021802 100644 --- a/lib/helpers/gem_exec.rb +++ b/lib/helpers/gem_exec.rb @@ -14,7 +14,7 @@ class GemExec version = '>= 0' begin gem_path = Gem.bin_path(gem_name, gem_name, version) - unless File.file?(filename) + unless File.file?(gem_path) raise 'Gem.bin_path returned a path that does not exist.' end rescue Exception => e