Skip to content

Commit ec55294

Browse files
committed
Spec: also unset JAVACMD
1 parent e8b8185 commit ec55294

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

spec/launcher_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
end
88

99
it "should pass unrecognized arguments to JRuby" do
10-
expect(jruby_launcher_args("-J-Dsome.option -v --help")[-3..-1]).to contain_exactly("org/jruby/Main", "-v", "--help")
10+
expect(jruby_launcher_args("-J-Dsome.option -v --help")[-3..-1]).to eq ["org/jruby/Main", "-v", "--help"]
1111
end
1212

1313
it "should print help message" do

spec/spec_helper.rb

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def with_environment(pairs = {})
7070
config.before(:all) do
7171
JRubyLauncherHelper.check_executable_built
7272
# clear environment for better control
73+
ENV.delete("JAVACMD")
7374
ENV.delete("JAVA_HOME")
7475
ENV.delete("JRUBY_HOME")
7576
ENV.delete("JAVA_OPTS")

0 commit comments

Comments
 (0)