summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-24 23:05:39 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-26 11:01:01 +0100
commit48665218dc71fba39f571e880167f56c6301bbea (patch)
treec5c419cdae67bcf5594943b51d73c4ad17210134
parent06ce35b44b68f91e078fe5fd26839e5a284eb07c (diff)
downloadbundler-48665218dc71fba39f571e880167f56c6301bbea.tar.gz
Configure `simplecov` in `.simplecov` file
-rw-r--r--.simplecov11
-rw-r--r--spec/spec_helper.rb2
-rw-r--r--spec/support/simplecov.rb22
3 files changed, 12 insertions, 23 deletions
diff --git a/.simplecov b/.simplecov
new file mode 100644
index 0000000000..110673f74d
--- /dev/null
+++ b/.simplecov
@@ -0,0 +1,11 @@
+# frozen_string_literal: true
+
+SimpleCov.start do
+ add_filter "/bin/"
+ add_filter "/lib/bundler/man/"
+ add_filter "/lib/bundler/vendor/"
+ add_filter "/man/"
+ add_filter "/pkg/"
+ add_filter "/spec/"
+ add_filter "/tmp/"
+end
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 0e91542117..50cd90062a 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -29,7 +29,7 @@ ENV["BUNDLE_SPEC_RUN"] = "true"
# Don't wrap output in tests
ENV["THOR_COLUMNS"] = "10000"
-Spec::SimpleCov.setup
+require "simplecov"
module Gem
def self.ruby=(ruby)
diff --git a/spec/support/simplecov.rb b/spec/support/simplecov.rb
deleted file mode 100644
index 30d5c61616..0000000000
--- a/spec/support/simplecov.rb
+++ /dev/null
@@ -1,22 +0,0 @@
-# frozen_string_literal: true
-
-module Spec
- module SimpleCov
- def self.setup
- require "simplecov"
- configure_exclusions
- end
-
- def self.configure_exclusions
- SimpleCov.start do
- add_filter "/bin/"
- add_filter "/lib/bundler/man/"
- add_filter "/lib/bundler/vendor/"
- add_filter "/man/"
- add_filter "/pkg/"
- add_filter "/spec/"
- add_filter "/tmp/"
- end
- end
- end
-end