mirror of
https://github.com/edgurgel/httparrot
synced 2025-04-05 00:02:41 -04:00
13 lines
356 B
Elixir
13 lines
356 B
Elixir
defmodule HTTParrot.RequestStoreTest do
|
|
alias HTTParrot.RequestStore
|
|
use ExUnit.Case
|
|
|
|
test "save, retrieve, clear" do
|
|
request = %{req: 1}
|
|
RequestStore.clear(:test)
|
|
RequestStore.store(:test, request)
|
|
assert RequestStore.retrieve(:test) == [request]
|
|
RequestStore.clear(:test)
|
|
assert RequestStore.retrieve(:test) == []
|
|
end
|
|
end
|