Skip to content

Commit

Permalink
Code coverage with simplecov.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathie committed Jul 21, 2012
1 parent 4f8038d commit 48d5ca4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,5 +1,6 @@
/pkg
/rdoc
/coverage
/.bundle
*.swp
Gemfile.lock
2 changes: 2 additions & 0 deletions Gemfile
@@ -1,4 +1,6 @@
# Source gems from the default public repository
source :rubygems

gem 'simplecov'

gemspec
7 changes: 7 additions & 0 deletions spec/spec_helper.rb
@@ -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'

Expand Down

0 comments on commit 48d5ca4

Please sign in to comment.