Examveda

What is the purpose of a fixture in Ruby testing?

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

B. Simulates the behavior of a real object

C. Overrides the behavior of a method to return a specific value

D. Provides a fixed baseline for the test data

Answer: Option D


Join The Discussion

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