Skip to content

Commit 3afeda8

Browse files
authored
Merge pull request #173 from nobu/fix-exe_cli-spec
Run with the given ruby command
2 parents 2d68f36 + 2edf241 commit 3afeda8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/integration/exe_cli_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ def exe_path
1313
end
1414

1515
def exe(cmd)
16-
out = run!("#{exe_path} #{cmd}", raise_on_nonzero_exit: false)
16+
ruby = ENV.fetch("RUBY", "ruby")
17+
out = run!("#{ruby} #{exe_path} #{cmd}", raise_on_nonzero_exit: false)
1718
puts out if ENV["SYNTAX_SUGGEST_DEBUG"]
1819
out
1920
end

0 commit comments

Comments
 (0)