Permalink
Browse files

Code coverage with simplecov.

  • Loading branch information...
1 parent 4f8038d commit 48d5ca488215d36bd0e9f4793bfc779156902233 @mathie committed Jul 21, 2012
Showing with 10 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +2 −0 Gemfile
  3. +7 −0 spec/spec_helper.rb
View
@@ -1,5 +1,6 @@
/pkg
/rdoc
+/coverage
/.bundle
*.swp
Gemfile.lock
View
@@ -1,4 +1,6 @@
# Source gems from the default public repository
source :rubygems
+gem 'simplecov'
+
gemspec
View
@@ -1,5 +1,12 @@
require 'rubygems'
+if ENV['COVERAGE']
+ require 'simplecov'
+ SimpleCov.start do
+ add_filter '/spec/'
+ end
+end
+
$: << File.join(File.dirname(__FILE__), '..', 'lib')
require 'sage_pay'

0 comments on commit 48d5ca4

Please sign in to comment.