Examveda

What is the purpose of a let! block in RSpec?

A. Defines a memoized helper method that is executed before each example

B. Defines a memoized helper method that can be used in examples

C. Overrides the behavior of a method to return a specific value

D. Records the interactions between objects

Answer: Option A


Join The Discussion

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