Fixign tests

This commit is contained in:
Tomasz Drwięga 2016-09-02 10:10:51 +02:00
parent 9f8482e968
commit d0bc80e58a
3 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ fn should_serve_apps() {
// then // then
assert_eq!(response.status, "HTTP/1.1 200 OK".to_owned()); assert_eq!(response.status, "HTTP/1.1 200 OK".to_owned());
assert_eq!(response.headers.get(0).unwrap(), "Content-Type: application/json"); assert_eq!(response.headers.get(0).unwrap(), "Content-Type: application/json");
assert!(response.body.contains("Parity Home Screen")); assert!(response.body.contains("Parity Home Screen"), response.body);
} }
#[test] #[test]

View File

@ -54,7 +54,7 @@ fn should_reject_on_invalid_auth() {
// then // then
assert_eq!(response.status, "HTTP/1.1 401 Unauthorized".to_owned()); assert_eq!(response.status, "HTTP/1.1 401 Unauthorized".to_owned());
assert!(response.body.contains("Unauthorized")); assert!(response.body.contains("Unauthorized"), response.body);
assert_eq!(response.headers_raw.contains("WWW-Authenticate"), false); assert_eq!(response.headers_raw.contains("WWW-Authenticate"), false);
} }

View File

@ -34,7 +34,7 @@ fn should_reject_invalid_host() {
// then // then
assert_eq!(response.status, "HTTP/1.1 403 Forbidden".to_owned()); assert_eq!(response.status, "HTTP/1.1 403 Forbidden".to_owned());
assert!(response.body.contains("Current host is disallowed")); assert!(response.body.contains("Current Host Is Disallowed"), response.body);
} }
#[test] #[test]