M

Mr. Dubey • 72.21K Points
Coach

Q. Which assertion method is commonly used in RSpec for testing if an object responds to a method?

  • (A) expect(object).to respond_to(:method)
  • (B) assert_respond_to(object, :method)
  • (C) assert(object.respond_to?(:method))
  • (D) expect(object).to have_method(:method)
  • Correct Answer - Option(A)
  • Views: 79
  • Filed under category Ruby

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.


Question analytics