21700: Install Bundler system-wide in Rails postinst
[arvados.git] / sdk / ruby-google-api-client / rakelib / spec.rake
1 require 'rake/clean'
2 require 'rspec/core/rake_task'
3
4 CLOBBER.include('coverage', 'specdoc')
5
6 namespace :spec do
7   RSpec::Core::RakeTask.new(:all) do |t|
8     t.pattern = FileList['spec/**/*_spec.rb']
9     t.rspec_opts = ['--color', '--format', 'documentation']
10   end
11
12   desc 'Generate HTML Specdocs for all specs.'
13   RSpec::Core::RakeTask.new(:specdoc) do |t|
14     specdoc_path = File.expand_path('../../specdoc', __FILE__)
15
16     t.rspec_opts = %W( --format html --out #{File.join(specdoc_path, 'index.html')} )
17     t.fail_on_error = false
18   end
19 end
20
21 desc 'Alias to spec:all'
22 task 'spec' => 'spec:all'