Vidyalelo
Ruby Programming · Q21

Testing in Ruby (RSpec, MiniTest, etc.)

Programming · Ruby Programming · question 21

Q21

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
Answer
D.
Defines a memoized helper method that can be used in examples

Answer: Option C

Solution

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