Skip to content

Instantly share code, notes, and snippets.

@Ninigi
Last active June 26, 2018 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ninigi/122c09d5a2ecf2296cd21a29c719aef3 to your computer and use it in GitHub Desktop.
Save Ninigi/122c09d5a2ecf2296cd21a29c719aef3 to your computer and use it in GitHub Desktop.
defmodule DripperExample.FindUserTest do
use DripperExample.DataCase
alias DripperExample.{
Accounts,
AccountUsers
}
describe "find_user/1" do
test "finds a user for given username" do
{:ok, user} = Accounts.create_user(%{name: "A Name", username: "username"})
assert Accounts.find_user(%{user_name: user.username}).id == user.id
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment