Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 45 lines (31 sloc) 0.728 kB
91ee604 @marcinbunsch Initial commit
marcinbunsch authored
1 require 'rubygems'
2 require 'bundler/setup'
3
4 require 'bundler'
5
6 Bundler::GemHelper.install_tasks
7
8 begin
9
10 require 'rspec'
11 require "rspec/core/rake_task"
12
13 desc "Run all examples"
14 RSpec::Core::RakeTask.new(:spec) do |t|
15 t.rspec_path = 'bin/rspec'
16 t.rspec_opts = %w[--color]
17 t.verbose = false
18 end
19
9fd23e2 @marcinbunsch Making rake an alias to rake spec
marcinbunsch authored
20 task :default => [:spec]
21
b3dca74 @marcinbunsch Making rcov install only on mri 1.8 and 1.9. It makes rbx fail and is…
marcinbunsch authored
22 rescue
23 puts 'Could not load Broadcast RSpec Rake tasks'
24 end
25
26 begin
27
91ee604 @marcinbunsch Initial commit
marcinbunsch authored
28 namespace :spec do
b3dca74 @marcinbunsch Making rcov install only on mri 1.8 and 1.9. It makes rbx fail and is…
marcinbunsch authored
29
91ee604 @marcinbunsch Initial commit
marcinbunsch authored
30 task :cleanup do
31 rm_rf 'coverage.data'
32 end
33
34 RSpec::Core::RakeTask.new :rcov do |t|
35 t.rcov = true
36 t.rcov_opts = %[-Ilib -Ispec --exclude "gems/*,features"]
37 t.verbose = false
38 end
39
40 end
41
9fd23e2 @marcinbunsch Making rake an alias to rake spec
marcinbunsch authored
42 rescue
b3dca74 @marcinbunsch Making rcov install only on mri 1.8 and 1.9. It makes rbx fail and is…
marcinbunsch authored
43 puts 'Could not load Broadcast RSpec Rcov Rake tasks'
9fd23e2 @marcinbunsch Making rake an alias to rake spec
marcinbunsch authored
44 end
Something went wrong with that request. Please try again.