Skip to content
Browse files

Started working on turning this into a rails 3 compatible gem.

  • Loading branch information...
1 parent 1df08a6 commit 926e82add84b0e4f7a1440f53ac1026e81f4629f @commondream committed Apr 16, 2010
Showing with 16 additions and 1 deletion.
  1. +1 −1 README.markdown
  2. +3 −0 lib/rcov_plugin.rb
  3. +12 −0 lib/rcov_plugin/railtie.rb
View
2 README.markdown
@@ -1,7 +1,7 @@
rcov_plugin
===========
-This is a simple rails plugin that adds some useful rcov tasks.
+This is a simple rails plugin for Rails 3 that adds some useful rcov rake tasks.
rake test:coverage # Tests coverage on the entire application
rake test:coverage:units # Tests coverage for unit tests
View
3 lib/rcov_plugin.rb
@@ -0,0 +1,3 @@
+module RcovPlugin
+ require 'rcov_plugin/raltie' if defined?(Rails)
+end
View
12 lib/rcov_plugin/railtie.rb
@@ -0,0 +1,12 @@
+require 'rcov_plugin'
+require 'rails'
+
+module RcovPlugin
+ class Railtie < Rails::Railtie
+ railtie_name :rcov_plugin
+
+ rake_tasks do
+ load "tasks/rcov.rake"
+ end
+ end
+end

0 comments on commit 926e82a

Please sign in to comment.
Something went wrong with that request. Please try again.