Fixtures in Ruby on Rails with RSpec

Gokul
2 min readJan 28, 2023

What?

Ruby on Rails fixtures are a way to provide test data for your application. Most of the time, you use them with the RSpec testing framework to give your tests test data. Fixtures are a way to pre-populate your test database with a set of data that you can use to test your application.

Fixtures are stored in files that have a .yml file extension and are located in…

--

--

Gokul

Consultant | Freelancer | Ruby on Rails | ReactJS