Let vs. Let! vs. Instance Variables in RSpec | Mix & Go
A common source of confusion when using RSpec is whether to use let, let!, or an instance variable, for storing state. In this article I’ll try to explain the difference between let, let!, and instance variables so you know which one to choose.
Mix & Go