Skip to content

Commit

Permalink
Fixes doc in the source edoc file. See #27
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Nikitin committed Oct 9, 2018
1 parent 359c2a9 commit 94146a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ The simplest stub you can do is

```erlang

bookih_spork:stub_request().
bookish_spork:stub_request().

```

Expand All @@ -79,7 +79,7 @@ If you need specify response you easily can do this:

```erlang

bookih_spork:stub_request(Status, Headers, Content).
bookish_spork:stub_request(Status, Headers, Content).

```

Expand Down Expand Up @@ -165,7 +165,7 @@ There are cases when the testee function initiates more than one request. But if

```erlang
bookish_spork:stub_request(200, <<"{\"value\": \"The first response\"}">>),
bookih_spork:stub_request(200, <<"{\"value\": \"The second response\"}">>).
bookish_spork:stub_request(200, <<"{\"value\": \"The second response\"}">>).

```

Expand Down
6 changes: 3 additions & 3 deletions doc/overview.edoc
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ It starts process without link. Thus you can use it in `init_per_group' and in `
The simplest stub you can do is

<pre lang="erlang">
bookih_spork:stub_request().
bookish_spork:stub_request().
</pre>

It will stub your requests with `204 No Content' response with empty body.
Expand All @@ -72,7 +72,7 @@ If you need specify response you easily can do this:


<pre lang="erlang">
bookih_spork:stub_request(Status, Headers, Content).
bookish_spork:stub_request(Status, Headers, Content).
</pre>


Expand Down Expand Up @@ -150,7 +150,7 @@ As you can see there are two types of assertions:
There are cases when the testee function initiates more than one request. But if you know the order of your requests, you can set several expectations

<pre lang="erlang"><![CDATA[bookish_spork:stub_request(200, <<"{\"value\": \"The first response\"}">>),
bookih_spork:stub_request(200, <<"{\"value\": \"The second response\"}">>).]]>
bookish_spork:stub_request(200, <<"{\"value\": \"The second response\"}">>).]]>
</pre>

The library will response in the order the stubs were defined.
Expand Down

0 comments on commit 94146a6

Please sign in to comment.