Commit 7f1869cb authored by Mislav Marohnić's avatar Mislav Marohnić
Browse files

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
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -560,9 +560,8 @@ DEF
require_java7
install_package "jruby-9000.dev" "http://ci.jruby.org/jruby-dist-9000.dev-bin.tar.gz" jruby
DEF
  assert_failure <<OUT
ERROR: Java 7 required. Please install a 1.7-compatible JRE.
OUT
  assert_failure
  assert_output_contains "ERROR: Java 7 required. Please install a 1.7-compatible JRE."
}

@test "JRuby Java is outdated" {
@@ -574,9 +573,8 @@ OUT
require_java7
install_package "jruby-9000.dev" "http://ci.jruby.org/jruby-dist-9000.dev-bin.tar.gz" jruby
DEF
  assert_failure <<OUT
ERROR: Java 7 required. Please install a 1.7-compatible JRE.
OUT
  assert_failure
  assert_output_contains "ERROR: Java 7 required. Please install a 1.7-compatible JRE."
}

@test "JRuby Java 7 up-to-date" {