Permalink
Browse files

CHORE: Added code coverage permanently

  • Loading branch information...
1 parent c2ca25a commit 55f6125f781fc579b6d4f346b01be2701038de0c @rudionrails committed Mar 22, 2013
Showing with 16 additions and 3 deletions.
  1. +3 −1 .gitignore
  2. +3 −0 Gemfile
  3. +10 −2 spec/spec_helper.rb
View
@@ -8,4 +8,6 @@ Gemfile.lock
# vim
*.swp
-**/*.swp
+
+# coverage
+/coverage
View
@@ -9,5 +9,8 @@ group :development, :test do
gem "rspec"
gem "rr"
gem "timecop"
+
+ gem 'simplecov', :require => false
+ gem 'coveralls', :require => false
end
View
@@ -3,12 +3,20 @@
ENV['YELL_ENV'] = 'test'
-require 'yell'
-
require 'rspec'
require 'rr'
require 'timecop'
+require 'simplecov'
+require 'coveralls'
+SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
+ SimpleCov::Formatter::HTMLFormatter,
+ Coveralls::SimpleCov::Formatter
+]
+SimpleCov.start
+
+require 'yell'
+
RSpec.configure do |config|
config.mock_framework = :rr

0 comments on commit 55f6125

Please sign in to comment.