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.
6 lines
129 B
Ruby
6 lines
129 B
Ruby
if defined?(RSpec)
|
|
namespace :rails4 do
|
|
RSpec::Core::RakeTask.new(:spec)
|
|
task test: %w(spec:prepare_db spec)
|
|
end
|
|
end
|