Vidyalelo
Ruby Programming · Q14

Testing in Ruby (RSpec, MiniTest, etc.)

Programming · Ruby Programming · question 14

Q14

What is the purpose of the let keyword in RSpec?

A.
Executes code before each example
B.
Defines a memoized helper method that can be used in examples
Answer
C.
Executes code after each example
D.
None of the above

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board