When we want to test without rails, we can't use the controllers to generate them. Also fixes the problem where there is still an old file fixture that doesn't match the users in the database.
8 lines
180 B
Ruby
8 lines
180 B
Ruby
if defined?(RSpec)
|
|
namespace :spec do
|
|
task prepare_db: %w(db:create db:test:load)
|
|
|
|
desc "Prepare for rspec"
|
|
task prepare: %w(db:environment:set prepare_db)
|
|
end
|
|
end
|