Skip to content

Commit

Permalink
Switch from coveralls to our simplecov setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston committed Nov 30, 2013
1 parent 86de2eb commit 78d49b7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 19 deletions.
8 changes: 2 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,10 @@ platforms :ruby do
gem 'github-markup', '0.7.2'
end

### dep for ci/coverage
gem 'coveralls', :require => false

# mime-types 2 requires ruby 1.8, so we have to specify an old version.
gem 'mime-types', '~> 1.0'

platforms :jruby do
gem "jruby-openssl"
end

gem 'simplecov', '~> 0.8'

eval File.read('Gemfile-custom') if File.exist?('Gemfile-custom')
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# rspec-core [![Build Status](https://secure.travis-ci.org/rspec/rspec-core.png?branch=master)](http://travis-ci.org/rspec/rspec-core) [![Code Climate](https://codeclimate.com/github/rspec/rspec-core.png)](https://codeclimate.com/github/rspec/rspec-core) [![Coverage Status](https://coveralls.io/repos/rspec/rspec-core/badge.png?branch=master)](https://coveralls.io/r/rspec/rspec-core?branch=master)
# rspec-core [![Build Status](https://secure.travis-ci.org/rspec/rspec-core.png?branch=master)](http://travis-ci.org/rspec/rspec-core) [![Code Climate](https://codeclimate.com/github/rspec/rspec-core.png)](https://codeclimate.com/github/rspec/rspec-core)

rspec-core provides the structure for writing executable examples of how your
code should behave, and an `rspec` command with tools to constrain which
Expand Down
22 changes: 10 additions & 12 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ def self.each_run
end

Spork.prefork do
old_verbose, $VERBOSE = $VERBOSE, false
if ENV['TRAVIS'] && !ENV['NO_COVERALLS']
require 'simplecov' if RUBY_VERSION.to_f > 1.8
require 'coveralls'
Coveralls.wear! do
add_filter '/bundle/'
add_filter '/spec/'
add_filter '/tmp/'
require 'rspec/support/spec'

module ArubaLoader
extend RSpec::Support::WithIsolatedStdErr
with_isolated_stderr do
require 'aruba/api'
end
end
require 'aruba/api'
$VERBOSE = old_verbose

RSpec::Support::Spec.setup_simplecov do
minimum_coverage 96
end

if RUBY_PLATFORM == 'java'
# Works around https://jira.codehaus.org/browse/JRUBY-5678
Expand Down Expand Up @@ -120,8 +120,6 @@ def without_env_vars(*vars)
end
end

require 'rspec/support/spec'

RSpec.configure do |c|
# structural
c.alias_it_behaves_like_to 'it_has_behavior'
Expand Down

0 comments on commit 78d49b7

Please sign in to comment.