Examveda
Examveda

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

C. Provides a placeholder for a method that will be defined later

D. Checks if a method is called with the correct arguments

Answer: Option B


Join The Discussion

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