mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-01-19 20:51:59 +01:00
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.
This commit is contained in:
parent
d7b881d20e
commit
7f1869cbcd
1 changed files with 4 additions and 6 deletions
|
@ -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" {
|
||||
|
|
Loading…
Reference in a new issue