summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2019-11-24 17:18:35 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2019-11-24 17:18:35 +0100
commitae1c07408eb367ba4d72198e0f4c09efccf67153 (patch)
tree7b5e488d01a9259346d4d65ef854ea53ef5c4745
parente0b08d754b205f9204415c8d08b93a30cb92c04b (diff)
downloadcoderay-ae1c07408eb367ba4d72198e0f4c09efccf67153.tar.gz
merge coverageextend-specs
-rw-r--r--.simplecov4
-rw-r--r--spec/spec_helper.rb5
-rw-r--r--test/executable/suite.rb1
-rw-r--r--test/functional/for_redcloth.rb1
-rw-r--r--test/functional/suite.rb1
-rwxr-xr-xtest/unit/suite.rb1
6 files changed, 9 insertions, 4 deletions
diff --git a/.simplecov b/.simplecov
new file mode 100644
index 0000000..f498df8
--- /dev/null
+++ b/.simplecov
@@ -0,0 +1,4 @@
+unless RUBY_VERSION[/^2.3/]
+ SimpleCov.command_name $0
+ SimpleCov.start
+end
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 78a60b2..4e2dac6 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,7 +1,4 @@
-unless RUBY_VERSION[/^2.3/]
- require 'simplecov'
- SimpleCov.start
-end
+require 'simplecov'
# This file was generated by the `rspec --init` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
diff --git a/test/executable/suite.rb b/test/executable/suite.rb
index 997405c..4eb86c1 100644
--- a/test/executable/suite.rb
+++ b/test/executable/suite.rb
@@ -1,3 +1,4 @@
+require 'simplecov'
require 'test/unit'
require 'rubygems' unless defined? Gem
require 'shoulda-context'
diff --git a/test/functional/for_redcloth.rb b/test/functional/for_redcloth.rb
index d2b53f8..05c6e2d 100644
--- a/test/functional/for_redcloth.rb
+++ b/test/functional/for_redcloth.rb
@@ -1,3 +1,4 @@
+require 'simplecov'
require 'test/unit'
$:.unshift File.expand_path('../../../lib', __FILE__)
diff --git a/test/functional/suite.rb b/test/functional/suite.rb
index ec23eec..f87ca0f 100644
--- a/test/functional/suite.rb
+++ b/test/functional/suite.rb
@@ -1,3 +1,4 @@
+require 'simplecov'
require 'test/unit'
$VERBOSE = $CODERAY_DEBUG = true
diff --git a/test/unit/suite.rb b/test/unit/suite.rb
index 417dfed..26ebe1b 100755
--- a/test/unit/suite.rb
+++ b/test/unit/suite.rb
@@ -1,3 +1,4 @@
+require 'simplecov'
require 'test/unit'
require 'rubygems'