Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (23 sloc) 611 Bytes
# encoding: utf-8
require 'bundler/setup'
require 'appraisal'
Bundler::GemHelper.install_tasks
begin
require 'rspec'
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'rspec/core/rake_task'
desc "Run specs"
RSpec::Core::RakeTask.new('spec') do |t|
t.pattern = 'spec/**/*_spec.rb'
t.rspec_opts = ["-c"]
end
desc "Default: Run specs"
task :default => :spec
namespace :spec do
desc 'Run specs against all supported versions of Rails'
task :all => ["appraisal:install", "appraisal", "spec"]
end
Something went wrong with that request. Please try again.