I\'m using rails-rspec gem and I have several specs (models, controllers, etc). When I run:
rails-rspec
bundle exec rake
everything is te
I think we should use
config.before(:each) do Rails.application.load_seed # loading seeds end
as before(:all) runs the block one time before all of the examples are run.
So if we use before :all, the seed data will be cleared.
before :all