blob: a67630e3e701dcecf713ba683eef13f4c058fb49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
defmodule MailchimpTest do
use ExUnit.Case
test "if mailchimp apikey config exists" do
prop = Application.get_env(:mailchimp, :apikey)
assert false == is_nil prop
end
test "if apikey contains the server name" do
len = Application.get_env(:mailchimp, :apikey)
|> String.split(~r{-})
|> length
assert len == 2
end
end
|