Examveda
Examveda

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: Option D


Join The Discussion

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