Skip to content

Commit 507b083

Browse files
committed
Be more specific on -Xversion output spec
1 parent 26dbdd2 commit 507b083

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,4 +1,5 @@
11
require File.expand_path('../spec_helper.rb', __FILE__)
2+
load File.expand_path('../../lib/jruby-launcher.rb', __FILE__)
23

34
describe "JRuby native launcher" do
45
it "should run org.jruby.Main" do
@@ -210,6 +211,6 @@
210211
end
211212

212213
it "should print the version" do
213-
jruby_launcher("-Xversion 2>&1").should =~ /Launcher Version [0-9.]+/
214+
jruby_launcher("-Xversion 2>&1").should =~ /Launcher Version #{JRubyLauncher::VERSION}/
214215
end
215216
end

0 commit comments

Comments
 (0)