summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2019-11-24 16:12:09 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2019-11-24 16:12:09 +0100
commit1962f994113aec922cb3b1902ca1dc77f78de930 (patch)
treee3cf035c5f53bd62c0a4575134c3906714d44365
parenta59099685e34c29438b11dc6eacaeea1215a150b (diff)
downloadcoderay-1962f994113aec922cb3b1902ca1dc77f78de930.tar.gz
add SimpleCov
-rw-r--r--Gemfile1
-rw-r--r--spec/spec_helper.rb3
2 files changed, 4 insertions, 0 deletions
diff --git a/Gemfile b/Gemfile
index 12eeccc..0369afe 100644
--- a/Gemfile
+++ b/Gemfile
@@ -12,6 +12,7 @@ group :development do
gem 'rdoc', Gem::Version.new(RUBY_VERSION) < Gem::Version.new('1.9.3') ? '~> 4.2.2' : Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.2.2') ? '< 6' : '>= 6'
gem 'RedCloth', RUBY_PLATFORM == 'java' ? '= 4.2.9' : '>= 4.0.3'
gem 'rspec', '~> 3.9.0'
+ gem 'simplecov', '~> 0.17.1'
gem 'shoulda-context', RUBY_VERSION < '1.9' ? '= 1.2.1' : '>= 1.2.1'
gem 'term-ansicolor', RUBY_VERSION < '2.0' ? '~> 1.3.2' : '>= 1.3.2'
gem 'test-unit', RUBY_VERSION < '1.9' ? '~> 2.0' : '>= 3.0'
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index a63ebfe..9c1bc72 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,3 +1,6 @@
+require 'simplecov'
+SimpleCov.start
+
# This file was generated by the `rspec --init` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# The generated `.rspec` file contains `--require spec_helper` which will cause