Current section
Files
Jump to
Current section
Files
lib/perspective/dispatcher/tests/dispatcher_test.exs
defmodule Perspective.Dispatcher.Test do
use ExUnit.Case, async: true
use Perspective.BootAppPerTest
test "begin process of dispatching JSON / struct data to action to correct processor" do
assert {:ok, something} = Perspective.Dispatcher.dispatch(example_request())
end
def example_request do
Core.AddToDo.new("user/josh", %{
name: "Demonstrate how to generate an action from a data struct"
})
end
end