summaryrefslogtreecommitdiff
path: root/test/config_test.exs
blob: 6d0f0a2d427fe2d59093f5bca964fc0b5a536194 (plain)
1
2
3
4
5
6
7
8
9
10
defmodule Pleroma.ConfigTest do
  use Pleroma.DataCase
  alias Pleroma.Config

  test "get returns the item at the path if there is one" do
    Config.put([:instance, :name], "Plemora")
    assert Config.get([:instance, :name]) == "Plemora"
    assert Config.get([:unknown]) == nil
  end
end