Vidyalelo
Ruby Programming · Q29

Testing in Ruby (RSpec, MiniTest, etc.)

Programming · Ruby Programming · question 29

Q29

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
Answer
D.
Checks if a value meets certain conditions

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board