require 'flipper/adapters/operation_logger' RSpec.describe Flipper::Adapters::OperationLogger do let(:operations) { [] } let(:adapter) { Flipper::Adapters::Memory.new } let(:flipper) { Flipper.new(adapter) } subject { described_class.new(adapter, operations) } it_should_behave_like 'a flipper adapter' it 'shows itself when inspect' do subject.features output = subject.inspect expect(output).to match(/OperationLogger/) expect(output).to match(/operation_logger/) expect(output).to match(/@type=:features/) expect(output).to match(/@adapter=#