Check content of the error message.
In missing_backends_are_fatal
This commit is contained in:
parent
5390e44dec
commit
bf544be282
1 changed files with 4 additions and 1 deletions
|
|
@ -23,7 +23,10 @@ fn failing_alternate_backend() {
|
||||||
#[test]
|
#[test]
|
||||||
fn missing_backends_are_fatal() {
|
fn missing_backends_are_fatal() {
|
||||||
let (md, _temp) = dummy_book_with_backend("missing", "trduyvbhijnorgevfuhn", false);
|
let (md, _temp) = dummy_book_with_backend("missing", "trduyvbhijnorgevfuhn", false);
|
||||||
assert!(md.build().is_err());
|
let got = md.build();
|
||||||
|
assert!(got.is_err());
|
||||||
|
let error_message = got.err().unwrap().to_string();
|
||||||
|
assert_eq!(error_message, "Rendering failed");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue