A

Admin • 828.03K Points
Coach

Q. 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
  • Correct Answer - Option(B)
  • Views: 11
  • Filed under category Ruby
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.