Sha256: 0f148ca3f2ded64430982f2b601a7fe420a264ee92b57d03f9e08a1161e93534
Contents?: true
Size: 990 Bytes
Versions: 3
Compression:
Stored size: 990 Bytes
Contents
# frozen_string_literal: true require File.expand_path('../test_helper', File.dirname(__FILE__)) require File.expand_path('./dog', File.dirname(__FILE__)) if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.3.0') class CollectorsCoverageTest < Test::Unit::TestCase attr_accessor :coverband def setup Coverband.configure do |config| config.store = Coverband::Adapters::RedisStore.new(Redis.new) end @coverband = Coverband::Collectors::Coverage.instance.reset_instance end def teardown Thread.current[:coverband_instance] = nil Coverband.configure do |config| end @coverband = Coverband::Collectors::Coverage.instance.reset_instance end test 'gets coverage instance' do assert_equal Coverband::Collectors::Coverage, coverband.class end test 'defaults to a redis store' do assert_equal Coverband::Adapters::RedisStore, coverband.instance_variable_get('@store').class end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
coverband-3.0.0 | test/unit/collectors_coverage_test.rb |
coverband-3.0.0.alpha2 | test/unit/collectors_coverage_test.rb |
coverband-3.0.0.alpha | test/unit/collectors_coverage_test.rb |