require_relative "test_helper"
require "pstore"

class PStoreSingletonTest < Test::Unit::TestCase
  include TestHelper
  library "pstore"
  testing "singleton(::PStore)"

  def test_initialize
    assert_send_type  "(untyped file, ?bool thread_safe) -> PStore",
                      PStore, :new, "file_name", false
    assert_send_type  "(untyped file, ?Symbol) -> PStore",
                      PStore, :new, "file_name", :false
  end
end
