Last active
June 26, 2018 10:27
-
-
Save Ninigi/122c09d5a2ecf2296cd21a29c719aef3 to your computer and use it in GitHub Desktop.
This file contains 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 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