Gave up trying to reset env var - set to "*" after test
And after doctest. it stayed at "*" after the last test anyway, letting the doctest fail. doctests are not recommended for side effectful tests anyway https://hexdocs.pm/ex_unit/main/ExUnit.DocTest.html
This commit is contained in:
@@ -21,6 +21,9 @@ defmodule BasicSignupWhitelist do
|
||||
iex> System.delete_env("SIGNUP_ALLOWED_EMAILS")
|
||||
iex> BasicSignupWhitelist.mail_whitelisted("joe@example.com")
|
||||
false
|
||||
iex> System.put_env("SIGNUP_ALLOWED_EMAILS","*")
|
||||
iex> BasicSignupWhitelist.mail_whitelisted("joe@example.com")
|
||||
true
|
||||
|
||||
"""
|
||||
def mail_whitelisted(email) do
|
||||
|
||||
Reference in New Issue
Block a user