Created
September 7, 2018 10:20
-
-
Save zacck-zz/08ec889c6f82acc4ed152c230552fc9b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule ApiWeb.SubscriptionCase do | |
@moduledoc """ | |
This module contains the setup cases for subscriptions tests in the Application | |
""" | |
use ExUnit.CaseTemplate | |
using do | |
quote do | |
use ApiWeb.ChannelCase | |
use Absinthe.Phoenix.SubscriptionTest, | |
schema: ApiWeb.Schema | |
setup do | |
{:ok, socket} = Phoenix.ChannelTest.connect(ApiWeb.UserSocket, %{}) | |
{:ok, socket} = Absinthe.Phoenix.SubscriptionTest.join_absinthe(socket) | |
{:ok, socket: socket} | |
end | |
end | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment