Skip to content

Commit 091539d

Browse files
committed
Fix incompatibilities with rspec 3.
1 parent 82a1cc6 commit 091539d

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

1313
it "should print help message" do
1414
args = jruby_launcher_args("-Xhelp 2>&1")
15-
args.detect{|l| l =~ /JRuby Launcher usage/}.should be_true
15+
args.select {|l| l =~ /JRuby Launcher usage/}.should_not be_empty
1616
args.should include("-X")
1717
args = jruby_launcher_args("-X 2>&1")
18-
args.detect{|l| l =~ /JRuby Launcher usage/}.should be_true
18+
args.detect {|l| l =~ /JRuby Launcher usage/}.should_not be_empty
1919
args.should include("-X")
2020
end
2121

0 commit comments

Comments
 (0)