πŸ“Š Ruby
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
πŸ’¬ Discuss
βœ… Correct Answer: (B) Overrides the behavior of a method to return a specific value

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
203
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate