Examveda

What is the purpose of a subject block in RSpec?

A. Records the interactions between objects

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

C. Provides a target object for the example group

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

Answer: Option C


Join The Discussion

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