Skip to content

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

@thewoolleyman

Description

@thewoolleyman

...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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions