Sha256: 358758683e08c32273db6dc7e5832cf1d01730c518ff23d3505e733b3233f3c6

Contents?: true

Size: 422 Bytes

Versions: 3

Compression:

Stored size: 422 Bytes

Contents

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

RSpec.describe Flipper::Adapters::PStore do
  subject {
    dir = FlipperRoot.join("tmp").tap { |d| d.mkpath }
    described_class.new(dir.join("flipper.pstore"))
  }

  it_should_behave_like 'a flipper adapter'

  it "defaults path to flipper.pstore" do
    expect(described_class.new.path).to eq("flipper.pstore")
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flipper-0.7.4 spec/flipper/adapters/pstore_spec.rb
flipper-0.7.3 spec/flipper/adapters/pstore_spec.rb
flipper-0.7.2 spec/flipper/adapters/pstore_spec.rb