Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add simplecov for test coverage

  • Loading branch information...
commit 28f7428763468299fa403cae58bf8a0d619f8782 1 parent 7abed5c
@mauriciozaffari authored
Showing with 9 additions and 0 deletions.
  1. +2 −0  Gemfile
  2. +4 −0 Gemfile.lock
  3. +3 −0  spec/spec_helper.rb
View
2  Gemfile
@@ -1,2 +1,4 @@
source 'http://rubygems.org'
gemspec
+
+gem 'simplecov', '>= 0.4.0', :require => false, :group => :test
View
4 Gemfile.lock
@@ -36,6 +36,9 @@ GEM
rspec-expectations (2.5.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.5.0)
+ simplecov (0.4.2)
+ simplecov-html (~> 0.4.4)
+ simplecov-html (0.4.5)
tzinfo (0.3.27)
PLATFORMS
@@ -46,3 +49,4 @@ DEPENDENCIES
mongoid_search!
rake (~> 0.8.7)
rspec (~> 2.4)
+ simplecov (>= 0.4.0)
View
3  spec/spec_helper.rb
@@ -1,3 +1,6 @@
+require 'simplecov'
+SimpleCov.start
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'mongoid'
Please sign in to comment.
Something went wrong with that request. Please try again.