Examveda

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

C. Executes code after each example

D. None of the above

Answer: Option B


Join The Discussion

Related Questions on Testing in Ruby (RSpec, MiniTest, etc.)