mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Change wording around let variant
The value is set when the expression is run at program startup, not when the test starts.
This commit is contained in:
parent
31fb1c3e81
commit
c7e6b82a9a
1 changed files with 1 additions and 2 deletions
|
@ -813,14 +813,13 @@ module Spectator::DSL
|
|||
# let(lazy_time) { Time.utc }
|
||||
#
|
||||
# it "lazy evaluates" do
|
||||
# now = current_time
|
||||
# sleep 5
|
||||
# expect(lazy_time).to_not eq(now)
|
||||
# end
|
||||
# ```
|
||||
#
|
||||
# However, the value is not reused across tests.
|
||||
# It will be reconstructed when the next test starts.
|
||||
# Each test will have its own copy.
|
||||
#
|
||||
# ```
|
||||
# let array = [0, 1, 2]
|
||||
|
|
Loading…
Reference in a new issue