I've spent hours on findin information on how to test rails 4 app with new MiniTest, seems like everyone use rspec. I'm trying to test all levels of application, and currently stuck on how to test persisted data, for example I've User
model which is belongs to Account
and I want to test registration and authentication and all post-auth things. Currently all my test aren't persistent, model level test create users with each test-run.
However I want some data to be persistent, for example few User-Accounts, or linked projects with account. I don't want to recreate them with each run. But I wasn't able to find any information regarding rails 4 and MiniTest.
So what should I use to persist data? fixtures or seed.rb? How to reset data during controller \integration tests?