Examveda

What is the purpose of the be_a matcher in RSpec?

A. Checks if an object is equal to another object

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

C. Checks if an object is an instance of a certain class

D. Checks if a value meets certain conditions

Answer: Option C


Join The Discussion

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