Tests rebuild database which takes a bit of time. I hacked Rakefile to not rebuild database every time.

Rake::Task['features'].clear_prerequisites   rescue nil # For some super weird reason this fails for some...
Rake::Task['default'].clear_prerequisites    rescue nil
Rake::Task['spec'].clear_prerequisites rescue nil

task :spec          => %w[db:abort_if_pending_migrations]
task :features      => %w[db:abort_if_pending_migrations]

desc "Run all tests and features"
task :default => %w(spec features)

Tests rebuild database which takes a bit of time. I hacked Rakefile to not rebuild database every time.


Rake::Task['features'].clear_prerequisites   rescue nil # For some super weird reason this fails for some...
Rake::Task['default'].clear_prerequisites    rescue nil
Rake::Task['spec'].clear_prerequisites rescue nil

task :spec          => %w[db:abort_if_pending_migrations]
task :features      => %w[db:abort_if_pending_migrations]

desc "Run all tests and features"
task :default => %w(spec features)