01_string_spec.rb - let helper explanation
CouchofTomato opened this issue · comments
Austin commented
The explanation of let in the string_spec lesson states it creates a variable that returns the computed value.
It actually creates a helper method with a memoized value that is cached for the same example but not across different examples.
In the example where favorite_color is set to 'navy blue' it is just creating a local variable and isn't related to the helper method created by let.