Fixtures in Ruby on Rails with RSpec

2 min readJan 28


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…