Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
63af94c
commit 80b24a6
Showing
1 changed file
with
1 addition
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,9 @@ | ||
begin | ||
require "rspec/core/rake_task" | ||
|
||
begin | ||
require 'rcov' | ||
rescue LoadError | ||
warn "RCov gem is required, please install it (gem install rcov)." | ||
end | ||
|
||
rescue LoadError | ||
rescue LoadError => e | ||
warn "RSpec gem is required, please install it (gem install rspec)." | ||
end | ||
|
||
if defined?(RSpec::Core::RakeTask) | ||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
if defined?(Rcov) | ||
CLOBBER.include('coverage') | ||
|
||
namespace :spec do | ||
desc "Run all specs in spec directory with RCov" | ||
RSpec::Core::RakeTask.new(:rcov) do |t| | ||
t.rcov = true | ||
t.rcov_opts = ["--exclude", "spec/*,features/*,gems/*"] | ||
end | ||
end | ||
end | ||
end | ||
|