defmodule AccountHelper do
use ExUnit.Case
def expect_login_success(result) do
assert(result.code == 0)
...
end
end
$ mix compile
== Compilation error on file lib/account_helper.ex ==
** (RuntimeError) cannot use ExUnit.Case without starting ExUnit application, please call ExUnit.start() or explicitly start the :ex_unit app
/Users/lijie/source/elixir/lib/ex_unit/lib/ex_unit/case.ex:35: ExUnit.Case."MACRO-__using__"/2
lib/account_helper.ex:2: ExUnit.Case.__using__/1
lib/account_helper.ex:2: AccountHelper (module)
--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
I modified code to 'import ExUnit.Assertions', it works.