Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automatically enhance rake db:fixtures:load with spec:fixture_builder:build #46

Open
thewoolleyman opened this issue Dec 25, 2016 · 0 comments

Comments

@thewoolleyman
Copy link
Collaborator

thewoolleyman commented Dec 25, 2016

...to ensure fixtures are always built first, if needed. This works:

task 'db:fixtures:load' do
  Rake::Task['spec:fixture_builder:build'].invoke
  Rails.env=('development') # fixture_builder will set the env to test, we must set it back
  Rake::Task['db:fixtures:load'].invoke # no, it's not an infinite loop, because Rake!
end
@thewoolleyman thewoolleyman changed the title Have library always enhance rake db:fixtures:load with spec:fixture_builder:build automatically enhance rake db:fixtures:load with spec:fixture_builder:build Dec 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant