Skip to content

Commit

Permalink
don't get shouty about rcov not being installed
Browse files Browse the repository at this point in the history
just do it if someone tries to run the rcov task
  • Loading branch information
matthewrudy committed Mar 12, 2010
1 parent be166ad commit c9c389c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/tasks/coverage.rake
Expand Up @@ -63,5 +63,11 @@ begin
end

rescue LoadError
"You must install the 'rcov' gem to use rcov_rails\n\tsudo gem install rcov"

namespace :test do
task :coverage do
puts "You must install the 'rcov' gem to use rcov_rails\n\tsudo gem install rcov"
end
end

end

0 comments on commit c9c389c

Please sign in to comment.