Skip to content

Commit 66bec0d

Browse files
committed
Made -X/-Xhelp spec more lenient on windows
1 parent bebe7e9 commit 66bec0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/launcher_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
it "should print help message" do
1313
args = jruby_launcher_args("-Xhelp 2>&1")
1414
args.detect{|l| l =~ /JRuby Launcher usage/}.should be_true
15-
args[-1].should == "-X"
15+
args.should include("-X")
1616
args = jruby_launcher_args("-X 2>&1")
1717
args.detect{|l| l =~ /JRuby Launcher usage/}.should be_true
18-
args[-1].should == "-X"
18+
args.should include("-X")
1919
end
2020

2121
it "should use $JAVACMD when JAVACMD is specified" do

0 commit comments

Comments
 (0)