Skip to content

Commit

Permalink
Only use Ruby.gem on Unix
Browse files Browse the repository at this point in the history
Signed-off-by: David Crosby <[email protected]>
  • Loading branch information
dafyddcrosby committed Nov 12, 2024
1 parent 6f5010b commit bcdcd64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/mixlib/shellout_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
let(:ruby_code) { raise "define let(:ruby_code)" }
let(:options) { nil }

let(:ruby_eval) { lambda { |code| "#{Gem.ruby} -e '#{code}'" } }
let(:ruby_eval) { lambda { |code| "#{unix? ? Gem.ruby : 'ruby'} -e '#{code}'" } }

context "when instantiating" do
subject { shell_cmd }
Expand Down

0 comments on commit bcdcd64

Please sign in to comment.