Examveda

What is the purpose of the should syntax in RSpec?

A. Provides a way to define before and after hooks

B. Provides a way to define shared examples

C. Provides a way to define custom matchers

D. Provides a more readable way to express expectations

Answer: Option D


Join The Discussion

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