Skip to content

Commit

Permalink
Fix quoting in README
Browse files Browse the repository at this point in the history
  • Loading branch information
jfornoff authored Sep 29, 2017
1 parent a4b8b0e commit d1a5ac7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,9 @@ mix espec spec/some_spec.exs --string 'context with tag'
## `before` and `finally`
`before` blocks are evaluated before the example and `finally` runs after the example.

The blocks can return `{:shared, key: value, ...}` or (like in ExUnit) `{:ok, key: value, ...}`, so the keyword list will be saved in the dictionary and can be accessed in other `before` blocks, in the example, and in `finally` blocks through ['shared`](#shared).
You can also use map as a second term in returned tuple: `{:shared, %{key: value, ...}}.
The blocks can return `{:shared, key: value, ...}` or (like in ExUnit) `{:ok, key: value, ...}`, so the keyword list will be saved in the dictionary and can be accessed in other `before` blocks, in the example, and in `finally` blocks through [`shared`](#shared).
You can also use a map as a second term in returned tuple: `{:shared, %{key: value, ...}}`.

Example:
```elixir
defmodule BeforeAndFinallySpec do
Expand Down

0 comments on commit d1a5ac7

Please sign in to comment.