Skip to content
Browse files

Add simplecov.

  • Loading branch information...
1 parent 2325e6b commit b046780aa6fa807af10b5fb84c56d58b3a4166e4 @fnichol committed Apr 5, 2012
Showing with 10 additions and 0 deletions.
  1. +1 −0 campy.gemspec
  2. +9 −0 spec/campy/room_spec.rb
View
1 campy.gemspec
@@ -19,4 +19,5 @@ Gem::Specification.new do |gem|
gem.add_development_dependency "minitest", "~> 2.12.0"
gem.add_development_dependency "webmock", "~> 1.8.5"
+ gem.add_development_dependency "simplecov", "~> 0.6.1"
end
View
9 spec/campy/room_spec.rb
@@ -1,4 +1,13 @@
# -*- encoding: utf-8 -*-
+require 'simplecov'
+SimpleCov.adapters.define 'gem' do
+ add_filter '/spec/'
+
+ add_group 'Binaries', '/bin/'
+ add_group 'Libraries', '/lib/'
+end
+SimpleCov.start 'gem'
+
require 'minitest/autorun'
require 'webmock/minitest'
require 'campy/room'

0 comments on commit b046780

Please sign in to comment.
Something went wrong with that request. Please try again.