spec/flipper/dsl_spec.rb in flipper-0.11.0 vs spec/flipper/dsl_spec.rb in flipper-0.12.0

- old
+ new

@@ -327,6 +327,23 @@ destination_flipper = build_flipper expect(subject.adapter).to receive(:import).with(destination_flipper.adapter) subject.import(destination_flipper) end end + + describe '#memoize=' do + it 'delegates to adapter' do + expect(subject.adapter).not_to be_memoizing + subject.memoize = true + expect(subject.adapter).to be_memoizing + end + end + + describe '#memoizing?' do + it 'delegates to adapter' do + subject.memoize = false + expect(subject.adapter.memoizing?).to eq(subject.memoizing?) + subject.memoize = true + expect(subject.adapter.memoizing?).to eq(subject.memoizing?) + end + end end