spec/flipper/adapters/memoizable_spec.rb in flipper-0.7.0.beta3 vs spec/flipper/adapters/memoizable_spec.rb in flipper-0.7.0.beta4
- old
+ new
@@ -3,19 +3,14 @@
require 'flipper/adapters/memory'
require 'flipper/spec/shared_adapter_specs'
describe Flipper::Adapters::Memoizable do
let(:features_key) { described_class::FeaturesKey }
-
let(:adapter) { Flipper::Adapters::Memory.new }
let(:flipper) { Flipper.new(adapter) }
- let(:cache) { Thread.current[:flipper_memoize_cache] }
+ let(:cache) { {} }
- after do
- described_class.memoize = nil
- end
-
- subject { described_class.new(adapter) }
+ subject { described_class.new(adapter, cache) }
it_should_behave_like 'a flipper adapter'
describe "#memoize=" do
it "sets value" do