Skip to content

Commit

Permalink
Get rid of RCov
Browse files Browse the repository at this point in the history
  • Loading branch information
luislavena committed Jan 8, 2012
1 parent 63af94c commit 80b24a6
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions tasks/rspec.rake
@@ -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

0 comments on commit 80b24a6

Please sign in to comment.