Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Fixign tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Drwięga committed Sep 2, 2016
1 parent 9f8482e commit d0bc80e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dapps/src/tests/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fn should_serve_apps() {
// then
assert_eq!(response.status, "HTTP/1.1 200 OK".to_owned());
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]
Expand Down
2 changes: 1 addition & 1 deletion dapps/src/tests/authorization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ fn should_reject_on_invalid_auth() {

// then
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);
}

Expand Down
2 changes: 1 addition & 1 deletion dapps/src/tests/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ fn should_reject_invalid_host() {

// then
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]
Expand Down

0 comments on commit d0bc80e

Please sign in to comment.