Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined function teardown/2 #3

Open
NigelThorne opened this issue Jul 4, 2017 · 0 comments
Open

undefined function teardown/2 #3

NigelThorne opened this issue Jul 4, 2017 · 0 comments

Comments

@NigelThorne
Copy link

I was running an example.

ExUnit.start

defmodule CallbacksTest do
  use ExUnit.Case, async: true

  setup do
    IO.puts "This is a setup callback"
    { :ok, from_setup: :hello }
  end

  test "the truth", meta do
    assert meta[:from_setup] == :hello
  end

  teardown meta do
    assert meta[:from_setup] == :hello
    :ok
  end
end

I get

** (CompileError) test.el:15: undefined function teardown/2

I guess the api has chnged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant