Skip to content

Commit

Permalink
Remove leftovers from documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexliesenfeld committed Feb 28, 2024
1 parent acfd732 commit 86f652c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Expand Up @@ -35,12 +35,12 @@ isahc = { version = "1.7", optional = true }
basic-cookies = { version = "0.1", optional = true }
colored = { version = "2.0", optional = true }
clap = { version = "4.4", features = ["derive", "env"], optional = true }
env_logger = { version = "0.10", optional = true }
env_logger = { version = "0.11.1", optional = true }
serde_yaml = { version = "0.9", optional = true }
async-std = { version = "1.12", features = ["attributes", "unstable"] }

[dev-dependencies]
env_logger = "0.10"
env_logger = "0.11.1"
tokio-test = "0.4"
quote = "1.0"
actix-rt = "2.9"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -86,7 +86,7 @@ to path `/translate` with query parameter `word=hello`. The corresponding HTTP r
In case the request fails, `httpmock` would show you a detailed error description including a diff between the
expected and the actual HTTP request:

![colored-diff.png](docs/diff.png)
![colored-diff.png](https://raw.githubusercontent.com/alexliesenfeld/httpmock/master/docs/diff.png)

# Usage

Expand Down
6 changes: 6 additions & 0 deletions src/lib.rs
Expand Up @@ -46,6 +46,12 @@
//! // Ensure the mock server did respond as specified.
//! assert_eq!(response.status(), 200);
//! ```
//!
//! In case the request fails, `httpmock` would show you a detailed error description including a diff between the
//! expected and the actual HTTP request:
//!
//! ![colored-diff.png](https://raw.githubusercontent.com/alexliesenfeld/httpmock/master/docs/diff.png)
//!
//! # Usage
//! To be able to configure mocks, you first need to start a mock server by calling
//! [MockServer::start](struct.MockServer.html#method.start).
Expand Down
2 changes: 1 addition & 1 deletion tests/examples/getting_started_tests.rs
Expand Up @@ -42,7 +42,7 @@ async fn async_getting_started_test() {
.await;

// Send an HTTP request to the mock server. This simulates your code.
let url = format!("http://{}/hello-rustaceans", server.address());
let url = format!("http://{}/hello", server.address());
let response = get_async(&url).await.unwrap();

// Ensure the specified mock responded exactly one time.
Expand Down

0 comments on commit 86f652c

Please sign in to comment.