Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 27 lines (21 sloc) 0.568 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
require 'rake'
require 'rspec/core/rake_task'

desc 'Run the spec suite'
RSpec::Core::RakeTask.new('spec') {|t|
  t.rspec_opts = ['--colour', '--format Fuubar']
}

desc 'Run the acceptance suite'
RSpec::Core::RakeTask.new('acceptance') {|t|
  t.pattern = "./spec/acceptance/*.rb"
  t.rspec_opts = ['--colour']
}

desc 'Profile the spec suite'
RSpec::Core::RakeTask.new('profile') {|t|
  t.rspec_opts = %w[--color --profile]
}

desc 'Run code coverage'
RSpec::Core::RakeTask.new('rcov') {|t|
  t.rcov = true
  t.rcov_opts = %w[--exclude spec]
}

task :default => :spec
Something went wrong with that request. Please try again.