Fix undefined user variable in example

This commit is contained in:
Michael Miller 2019-03-31 12:47:22 -06:00
parent b78b6dde54
commit 2cea10a124
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ It can be used where one (or more inputs) changes the output of multiple methods
The `given` context gives a concise syntax for this use case.
```crystal
subject { User.new(age) }
subject(user) { User.new(age) }
# Each expression in the `given` block is its own test.
given age = 10 do