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:
Michael Miller 2019-07-19 17:09:24 -06:00 committed by Mike Miller
parent 31fb1c3e81
commit c7e6b82a9a
1 changed files with 1 additions and 2 deletions

View File

@ -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]