Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (25 sloc) 0.668 kb
# encoding: utf-8
require 'rubygems'
require 'bundler/setup'
require 'bundler/gem_tasks'
require 'rake'
require 'cucumber/rake/task'
require 'rspec/core/rake_task'
require 'appraisal'
require 'clearance/testing/application'
Clearance::Testing::Application.load_tasks
task :default do
if ENV['BUNDLE_GEMFILE'] =~ /gemfiles/
exec 'rake spec cucumber'
else
Rake::Task['appraise'].execute
end
end
task :appraise => ['appraisal:install'] do
exec 'rake appraisal spec cucumber'
end
RSpec::Core::RakeTask.new(:spec)
Cucumber::Rake::Task.new(:cucumber) do |t|
t.fork = true
t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress')]
end
Jump to Line
Something went wrong with that request. Please try again.