mail not whitelisted when not set
This commit is contained in:
parent
a913f2ca22
commit
135448398d
@ -4,15 +4,15 @@ defmodule BasicSignupWhitelist do
|
||||
"""
|
||||
|
||||
@doc """
|
||||
Hello world.
|
||||
false
|
||||
|
||||
## Examples
|
||||
|
||||
iex> BasicSignupWhitelist.hello()
|
||||
:world
|
||||
iex> BasicSignupWhitelist.mail_whitelisted("joe@example.com")
|
||||
false
|
||||
|
||||
"""
|
||||
def hello do
|
||||
:world
|
||||
def mail_whitelisted(_email) do
|
||||
false
|
||||
end
|
||||
end
|
||||
|
||||
@ -2,7 +2,7 @@ defmodule BasicSignupWhitelistTest do
|
||||
use ExUnit.Case
|
||||
doctest BasicSignupWhitelist
|
||||
|
||||
test "greets the world" do
|
||||
assert BasicSignupWhitelist.hello() == :world
|
||||
test "When not set, not whitelisted" do
|
||||
assert BasicSignupWhitelist.mail_whitelisted("joe@example.com") == false
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user