From c7e6b82a9af9d7b40dc0e3a46b469f1058469552 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Fri, 19 Jul 2019 17:09:24 -0600 Subject: [PATCH] Change wording around let variant The value is set when the expression is run at program startup, not when the test starts. --- src/spectator/dsl/structure_dsl.cr | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/spectator/dsl/structure_dsl.cr b/src/spectator/dsl/structure_dsl.cr index f795d69..8010d30 100644 --- a/src/spectator/dsl/structure_dsl.cr +++ b/src/spectator/dsl/structure_dsl.cr @@ -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]