Sha256: 6705f4d8d9afb310c13d0be349fde654b9d84fdf1083a825007e970575358e8f

Contents?: true

Size: 481 Bytes

Versions: 7

Compression:

Stored size: 481 Bytes

Contents

require 'test_helper'
require 'flipper/adapters/pstore'

class PstoreTest < MiniTest::Test
  prepend Flipper::Test::SharedAdapterTests

  def setup
    dir = FlipperRoot.join("tmp").tap { |d| d.mkpath }
    pstore_file = dir.join("flipper.pstore")
    pstore_file.unlink if pstore_file.exist?
    @adapter = Flipper::Adapters::PStore.new(pstore_file)
  end

  def test_defaults_path_to_flipper_pstore
    assert_equal Flipper::Adapters::PStore.new.path, "flipper.pstore"
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
flipper-0.10.2 test/adapters/pstore_test.rb
flipper-0.10.1 test/adapters/pstore_test.rb
flipper-0.10.0 test/adapters/pstore_test.rb
flipper-0.9.2 test/adapters/pstore_test.rb
flipper-0.9.1 test/adapters/pstore_test.rb
flipper-0.9.0 test/adapters/pstore_test.rb
flipper-0.9.0.beta1 test/adapters/pstore_test.rb