mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Fix undefined user variable in example
This commit is contained in:
parent
b78b6dde54
commit
2cea10a124
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue