Add SimpleCov coverage when running tests under 1.9 (though it doesn't seem to measure correctly...?).

This commit is contained in:
Patrick Mahoney 2011-12-17 21:50:12 -06:00
parent abe67c1702
commit c320c75c8d
3 changed files with 6 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
*~
coverage
pkg
tmp
Gemfile.lock

View File

@ -17,4 +17,5 @@ Gem::Specification.new do |s|
s.add_development_dependency('rake-compiler')
s.add_development_dependency('minitest')
s.add_development_dependency('minitest-matchers')
s.add_development_dependency('simplecov')
end

View File

@ -3,8 +3,12 @@ gem 'minitest'
require 'minitest/spec'
require 'minitest/autorun'
require 'minitest/matchers'
require 'simplecov'
require 'process_shared'
SimpleCov.start do
add_filter "/spec/"
end
class RangeMatcher
def initialize(operator, limit)