Skip to content

Commit ca72019

Browse files
committed
Enable coverage before loading simplecov
Fix: #853 Simplecov end up requiring json so we need to start collecting coverage before.
1 parent acf6e04 commit ca72019

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/json/test_helper.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
$LOAD_PATH.unshift(File.expand_path('../../../ext', __FILE__), File.expand_path('../../../lib', __FILE__))
22

3+
require 'coverage'
4+
Coverage.start
5+
36
begin
47
require 'simplecov'
58
rescue LoadError

0 commit comments

Comments
 (0)