desc "Creates a test rails app for the specs to run against" task :setup do require "rails/version" system("mkdir spec/rails") unless File.exist?("spec/rails") system "bundle exec rails new spec/rails/rails-#{Rails::VERSION::STRING} -m spec/support/rails_template.rb --skip-spring --skip-turbolinks" end require "rspec/core/rake_task" RSpec::Core::RakeTask.new(:spec) task default: :spec