2 require 'rspec/core/rake_task'
4 CLOBBER.include('coverage', 'specdoc')
7 RSpec::Core::RakeTask.new(:all) do |t|
8 t.pattern = FileList['spec/**/*_spec.rb']
9 t.rspec_opts = ['--color', '--format', 'documentation']
12 desc 'Generate HTML Specdocs for all specs.'
13 RSpec::Core::RakeTask.new(:specdoc) do |t|
14 specdoc_path = File.expand_path('../../specdoc', __FILE__)
16 t.rspec_opts = %W( --format html --out #{File.join(specdoc_path, 'index.html')} )
17 t.fail_on_error = false
21 desc 'Alias to spec:all'
22 task 'spec' => 'spec:all'