diaspora/lib/tasks/tests.rake
Jonne Haß e7d0a978ba Generate error pages on assets:precompile
This allows us to reuse any CSS we have, unify
their look and unify their look with the regular
page design.

This works by instantiating ActionView and rendering
templates in a rake task.

Inspired by the errgent gem.
2015-03-27 11:15:59 +01:00

22 lines
584 B
Ruby

namespace :ci do
namespace :travis do
task prepare_db: %w(db:create db:test:load)
task prepare: %w(prepare_db assets:generate_error_pages)
desc "Run everyhting except cucumber"
task other: %w(prepare tests:generate_fixtures spec jasmine:ci)
desc "Run cucumber"
task cucumber: %w(prepare rake:cucumber)
end
end
if defined?(RSpec)
namespace :tests do
desc "Run all specs that generate fixtures for rspec or jasmine"
RSpec::Core::RakeTask.new(:generate_fixtures => 'spec:prepare') do |t|
t.rspec_opts = ['--tag fixture']
end
end
end