May 12, 2015
When let / let! syntax is called in Rspec. ?
Use let to define a memoized helper method and you can execute it when you want to do.
But it can be called once in example.
It is similar to let.
It force the method’s invocation before each example.
(let! is similar to before)