Sha256: ff26b6fe86541dbc9412bc84c80596b40ca22d5b72a488d3d22c470205a4abab

Contents?: true

Size: 657 Bytes

Versions: 2

Compression:

Stored size: 657 Bytes

Contents

# frozen_string_literal: true

require File.expand_path("../../test_helper", File.dirname(__FILE__))

if ENV["COVERBAND_MEMCACHED"]
  require "active_support"
  require "dalli"

  class MemcachedTest < Minitest::Test
    def setup
      super
      @store = Coverband::Adapters::MemcachedStore.new(ActiveSupport::Cache::MemCacheStore.new)
    end

    def test_coverage
      @store.clear!
      mock_file_hash
      expected = basic_coverage
      @store.save_report(expected)
      assert_equal expected.keys, @store.coverage.keys
      @store.coverage.each_pair do |key, data|
        assert_equal expected[key], data["data"]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
coverband-6.1.4 test/coverband/adapters/memecached_store_test.rb
coverband-6.1.3 test/coverband/adapters/memecached_store_test.rb