Skip to content

Commit 0be3090

Browse files
author
Jeff McCune
committed
(#11607) Add Rakefile to enable spec testing
Without this patch the 2.1.x branch does not have a Rakefile like the 2.2.x and master branches do. This is a problem for the continuous integration testing since it executes `rake test` against 2.1.x, 2.2.x and master currently. This patch fixes the problem by copying the Rakefile into place enabling the `rake test` task. Reviewed-by: Josh Cooper
1 parent 842b0aa commit 0be3090

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Rakefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
require 'rake'
2+
require 'rspec/core/rake_task'
3+
4+
task :default => [:test]
5+
6+
desc 'Run RSpec'
7+
RSpec::Core::RakeTask.new(:test) do |t|
8+
t.pattern = 'spec/{unit}/**/*.rb'
9+
t.rspec_opts = ['--color']
10+
end
11+
12+
desc 'Generate code coverage'
13+
RSpec::Core::RakeTask.new(:coverage) do |t|
14+
t.rcov = true
15+
t.rcov_opts = ['--exclude', 'spec']
16+
end

0 commit comments

Comments
 (0)