Last active 2 months ago

gaiety's Avatar gaiety revised this gist 2 months ago. Go to revision

1 file changed, 9 insertions

test_cleanup.exs(file created)

@@ -0,0 +1,9 @@
1 + describe "my awesome testing describe" do
2 + setup do
3 + starting_value = Application.get_env(:cool, :beans)
4 +
5 + on_exit(fn ->
6 + Application.put_env(:cool, :beans, starting_value)
7 + end)
8 + end
9 + end
Newer Older