Vidyalelo
Ruby Programming · Q6

Testing in Ruby (RSpec, MiniTest, etc.)

Programming · Ruby Programming · question 6

Q6

What is the purpose of the before hook in RSpec?

A.
Executes code after all examples
B.
Executes code before all examples
C.
Executes code after each example
D.
Executes code before each example
Answer

Answer: Option D

Solution

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