Sha256: 2d70d4feb9f10dbca69ca325d243cbb245dba595dd417a5cc80d2a64a98618d3
Contents?: true
Size: 633 Bytes
Versions: 4
Compression:
Stored size: 633 Bytes
Contents
require 'helper' require 'flipper/adapters/memory' require 'flipper/adapters/dalli' require 'flipper/spec/shared_adapter_specs' RSpec.describe Flipper::Adapters::Dalli do let(:memory_adapter) { Flipper::Adapters::Memory.new } let(:cache) { Dalli::Client.new('localhost:11211') } let(:adapter) { Flipper::Adapters::Dalli.new(memory_adapter, cache) } let(:flipper) { Flipper.new(adapter) } subject { described_class.new(adapter, cache) } before do cache.flush end it_should_behave_like 'a flipper adapter' describe "#name" do it "is dalli" do expect(subject.name).to be(:dalli) end end end
Version data entries
4 entries across 4 versions & 1 rubygems