Sha256: ba1ea16c3e73c730488396e89d1166ec9557830d8f6ec1e87f6e4c3b13a0a05e

Contents?: true

Size: 360 Bytes

Versions: 2

Compression:

Stored size: 360 Bytes

Contents

require 'helper'
require 'flipper/adapters/memory'
require 'flipper/spec/shared_adapter_specs'

describe Flipper::Adapters::Memory do
  let(:source) { {} }

  subject { Flipper::Adapters::Memory.new(source) }

  def read_key(key)
    source[key]
  end

  def write_key(key, value)
    source[key] = value
  end

  it_should_behave_like 'a flipper adapter'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flipper-0.1.1 spec/flipper/adapters/memory_spec.rb
flipper-0.1.0 spec/flipper/adapters/memory_spec.rb