Permalink
Browse files

Add simplecov.

  • Loading branch information...
1 parent 8def8a7 commit 6a86f3fbbb11563b19ff873bc7dfe4129373d0f7 @bobbytables committed Dec 17, 2012
Showing with 8 additions and 0 deletions.
  1. +7 −0 spec/spec_helper.rb
  2. +1 −0 table_cloth.gemspec
View
@@ -3,6 +3,13 @@
require 'nokogiri'
require 'factory_girl'
require 'pry'
+require 'simplecov'
+
+if ENV["COVERAGE"] == "true"
+ SimpleCov.start do
+ add_filter "spec/support"
+ end
+end
Dir['./spec/support/**/*.rb'].each {|f| require f }
View
@@ -18,6 +18,7 @@ Gem::Specification.new do |gem|
gem.require_paths = ["lib"]
gem.add_development_dependency('rspec', '~> 2.11')
+ gem.add_development_dependency('simplecov')
gem.add_development_dependency('awesome_print')
gem.add_development_dependency('nokogiri')
gem.add_development_dependency('pry')

0 comments on commit 6a86f3f

Please sign in to comment.