Reputation: 96454
Where should I put test data that is for RSpec testing purposes only?
Upvotes: 0
Views: 3087
Reputation: 84343
Like many things in life, it depends.
Upvotes: 2
Reputation: 8240
You can use fixtures (1) if the data is simple or go to factory_girl_rails gem (2) if you need something more sophisticated.
fixtures
factory_girl_rails
Also you can create a rake task for populating your database.
rake task
Please consider look for similar questions like this