Skip to content

Commit 949155d

Browse files
committed
Fix match for Windows
1 parent a4460d1 commit 949155d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/launcher_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
require 'tmpdir'
2+
require 'rbconfig'
23
require File.expand_path('../spec_helper.rb', __FILE__)
34
load File.expand_path('../../lib/jruby-launcher.rb', __FILE__)
45

5-
describe "JRuby native launcher", if: /Windows/.match?(ENV_JAVA['os.name']) do
6+
describe "JRuby native launcher", if: /mswin/.match?(RbConfig::CONFIG['host_os']) do
67
it "should run org.jruby.Main" do
78
jruby_launcher_args("").last.should == "org/jruby/Main"
89
end

0 commit comments

Comments
 (0)