begin require 'bundler/setup' rescue LoadError puts 'You must `gem install bundler` and `bundle install` to run rake tasks' end APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__) load "rails/tasks/engine.rake" require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) task default: :spec task :test do puts `RAILS_ENV=test rake app:db:drop app:db:create app:db:migrate; rspec` end Bundler::GemHelper.install_tasks