Commit 7f1869cb by Mislav Marohnić

Fix error message assertions in JRuby tests

`assert_failure` only accepts an expected message as argument, and only
if it matches the output in full.
parent d7b881d2
...@@ -560,9 +560,8 @@ DEF ...@@ -560,9 +560,8 @@ DEF
require_java7 require_java7
install_package "jruby-9000.dev" "http://ci.jruby.org/jruby-dist-9000.dev-bin.tar.gz" jruby install_package "jruby-9000.dev" "http://ci.jruby.org/jruby-dist-9000.dev-bin.tar.gz" jruby
DEF DEF
assert_failure <<OUT assert_failure
ERROR: Java 7 required. Please install a 1.7-compatible JRE. assert_output_contains "ERROR: Java 7 required. Please install a 1.7-compatible JRE."
OUT
} }
@test "JRuby Java is outdated" { @test "JRuby Java is outdated" {
...@@ -574,9 +573,8 @@ OUT ...@@ -574,9 +573,8 @@ OUT
require_java7 require_java7
install_package "jruby-9000.dev" "http://ci.jruby.org/jruby-dist-9000.dev-bin.tar.gz" jruby install_package "jruby-9000.dev" "http://ci.jruby.org/jruby-dist-9000.dev-bin.tar.gz" jruby
DEF DEF
assert_failure <<OUT assert_failure
ERROR: Java 7 required. Please install a 1.7-compatible JRE. assert_output_contains "ERROR: Java 7 required. Please install a 1.7-compatible JRE."
OUT
} }
@test "JRuby Java 7 up-to-date" { @test "JRuby Java 7 up-to-date" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment