fixture_builder icon indicating copy to clipboard operation
fixture_builder copied to clipboard

automatically enhance rake `db:fixtures:load` with `spec:fixture_builder:build`

Open thewoolleyman opened this issue 9 years ago • 0 comments

...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 avatar Dec 25 '16 07:12 thewoolleyman