Sha256: 08d7fde245b15d31b4d936366fc16d47c6d5e978744ac8b4a764977c89589173
Contents?: true
Size: 1.2 KB
Versions: 3
Compression:
Stored size: 1.2 KB
Contents
# frozen_string_literal: true require File.expand_path('../test_helper', File.dirname(__FILE__)) class CoverbandTest < Minitest::Test test 'Coverband#start kicks off background reporting if enabled and not in rack server' do Coverband.configuration.stubs(:background_reporting_enabled).returns(:true) Coverband::RackServerCheck.expects(:running?).returns(false) Coverband::Background.expects(:start) Coverband.start end test 'Coverband#start delays background reporting if enabled and running in a rack server' do Coverband.configuration.stubs(:background_reporting_enabled).returns(true) Coverband::RackServerCheck.expects(:running?).returns(true) Coverband::Background.expects(:start).never Coverband.start end test 'Coverband#start does not kick off background reporting if not enabled' do Coverband.configuration.stubs(:background_reporting_enabled).returns(false) Coverband::Background.expects(:start).never ::Coverband.start end test 'Eager load coverage' do Coverband.eager_loading_coverage! assert_equal :eager_loading, Coverband.configuration.store.type Coverband.runtime_coverage! assert_nil Coverband.configuration.store.type end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
coverband-4.2.0 | test/coverband/coverband_test.rb |
coverband-4.2.0.rc3 | test/coverband/coverband_test.rb |
coverband-4.2.0.rc2 | test/coverband/coverband_test.rb |