Skip to content

Commit 8cd6fc1

Browse files
authored
Merge pull request #344 from matestack/upgrade-simplecov
Upgrade simplecov
2 parents f4ec00c + 22f925d commit 8cd6fc1

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

Gemfile.lock

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ GEM
9595
declarative-option (< 0.2.0)
9696
representable (>= 2.4.0, <= 3.1.0)
9797
uber (< 0.2.0)
98-
docile (1.3.1)
98+
docile (1.3.2)
9999
erubi (1.8.0)
100100
ffi (1.9.25)
101101
generator_spec (0.9.4)
@@ -109,7 +109,6 @@ GEM
109109
hashdiff (0.3.8)
110110
i18n (1.6.0)
111111
concurrent-ruby (~> 1.0)
112-
json (2.1.0)
113112
loofah (2.3.1)
114113
crass (~> 1.0.2)
115114
nokogiri (>= 1.5.9)
@@ -192,11 +191,10 @@ GEM
192191
selenium-webdriver (3.14.1)
193192
childprocess (~> 0.5)
194193
rubyzip (~> 1.2, >= 1.2.2)
195-
simplecov (0.16.1)
194+
simplecov (0.18.0)
196195
docile (~> 1.1)
197-
json (>= 1.8, < 3)
198-
simplecov-html (~> 0.10.0)
199-
simplecov-html (0.10.2)
196+
simplecov-html (~> 0.11.0)
197+
simplecov-html (0.11.0)
200198
sprockets (4.0.0)
201199
concurrent-ruby (~> 1.0)
202200
rack (> 1, < 3)

spec/spec_helper.rb

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,20 @@
1414
#
1515
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
1616
require 'simplecov'
17-
SimpleCov.start 'rails'
17+
SimpleCov.start do
18+
enable_coverage :branch
19+
20+
add_filter "/spec"
21+
add_filter %r{^/config/}
22+
23+
24+
add_group "Concepts", "/app/concepts"
25+
add_group "Helpers", "/app/helpers"
26+
add_group "App Lib", "/app/lib"
27+
add_group "Lib", %r{^/lib/}
28+
29+
track_files "{app,lib}/**/*.rb"
30+
end
1831

1932
require 'webmock/rspec'
2033
WebMock.allow_net_connect!

0 commit comments

Comments
 (0)