Skip to content

Commit

Permalink
Update specs to report coverage to coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
dkubb committed Mar 26, 2013
1 parent d0b510a commit 9b7bd17
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions spec/spec_helper.rb
@@ -1,7 +1,15 @@
# encoding: utf-8

require 'devtools/spec_helper'

if ENV['COVERAGE'] == 'true'
require 'simplecov'
require 'coveralls'

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]

SimpleCov.start do
command_name 'spec:unit'
Expand All @@ -12,8 +20,6 @@
end

require 'abstract_type'
require 'rspec'
require 'rspec/autorun' if RUBY_VERSION < '1.9'

# require spec support files and shared behavior
Dir[File.expand_path('../{support,shared}/**/*.rb', __FILE__)].each do |file|
Expand Down

0 comments on commit 9b7bd17

Please sign in to comment.