Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add inverse validation functions #58

Merged
merged 10 commits into from
Oct 31, 2023
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## 0.5.2-dev
- match "http://example.com/example.css", "/path/to/example.css", and "path/to/example.css" formatted paths for all types of static assets
- introduce `not_status()`, `not_title()`, `not_text()`, `not_texts()`, `not_header()`, and `not_header_value()`

## 0.5.1 January 28, 2023
- in `drupal::log_in`
Expand Down
4 changes: 2 additions & 2 deletions src/drupal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ pub async fn log_in(
// Build request manually if validating a specific status code.
let goose_request = GooseRequest::builder()
.path(login.url)
.expect_status_code(validate.status.unwrap())
.expect_status_code(validate.status.unwrap().1)
.build();
user.request(goose_request).await.unwrap()
} else {
Expand Down Expand Up @@ -680,7 +680,7 @@ pub async fn log_in(
let goose_request = GooseRequest::builder()
.path(login.url)
.method(GooseMethod::Post)
.expect_status_code(validate.status.unwrap())
.expect_status_code(validate.status.unwrap().1)
.set_request_builder(reqwest_request_builder.form(&params))
.build();
user.request(goose_request).await.unwrap()
Expand Down
Loading
Loading