Sha256: 204f426e624b6de94d084b553e90b2a0a0853e33c0b9ec8c44b3751917d67eb1
Contents?: true
Size: 799 Bytes
Versions: 3
Compression:
Stored size: 799 Bytes
Contents
# frozen_string_literal: true require File.expand_path('../test_helper', File.dirname(__FILE__)) class BackgroundTest < Test::Unit::TestCase def setup Coverband::Collectors::Coverage.instance.reset_instance Coverband.configure do |config| config.store = Coverband::Adapters::RedisStore.new(Redis.new) config.background_reporting_enabled = true end Coverband::Background.instance_variable_set(:@background_reporting_running, nil) end def test_start Thread.expects(:new).yields Coverband::Background.expects(:loop).yields Coverband::Background.expects(:sleep).with(30) Coverband::Background.expects(:at_exit).yields Coverband::Collectors::Coverage.instance.expects(:report_coverage).twice 2.times { Coverband::Background.start } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
coverband-4.0.1.alpha | test/unit/background_test.rb |
coverband-4.0.0 | test/unit/background_test.rb |
coverband-4.0.0.alpha | test/unit/background_test.rb |