Vidyalelo
Ruby Programming · Q8

Testing in Ruby (RSpec, MiniTest, etc.)

Programming · Ruby Programming · question 8

Q8

What is the purpose of a stub in Ruby testing?

A.
Checks if a method is called with the correct arguments
B.
Overrides the behavior of a method to return a specific value
Answer
C.
Provides a placeholder for a method that will be defined later
D.
None of the above

Answer: Option B

Solution

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