File: pstore_test.rb

package info (click to toggle)
ruby-flipper 0.26.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,288 kB
  • sloc: ruby: 16,377; sh: 61; javascript: 24; makefile: 14
file content (17 lines) | stat: -rw-r--r-- 474 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'test_helper'
require 'flipper/adapters/pstore'

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

  def setup
    dir = FlipperRoot.join('tmp').tap(&: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