1
0
mirror of https://github.com/meineerde/rackstash.git synced 2026-01-31 17:27:13 +00:00

Explicitly load Rackstash::Version again during coverage tests

This commit is contained in:
Holger Just 2017-11-29 12:16:47 +01:00
parent 969e1e8cf3
commit 3b8e76329c

View File

@ -22,6 +22,16 @@ if ENV['COVERAGE']
project_name 'Rackstash'
add_filter '/spec/'
end
# Load `rackstash/version.rb` again to get proper coverage data. This file is
# already loaded by bundler before SimpleCov starts during evaluation of the
# the `rackstash.gemspec` file
begin
warn_level, $VERBOSE = $VERBOSE, nil
load File.expand_path('../lib/rackstash/version.rb', __dir__)
ensure
$VERBOSE = warn_level
end
end
$LOAD_PATH.unshift File.expand_path('../lib', __dir__)