Skip to content

Instantly share code, notes, and snippets.

@shankardevy
Created Jul 14, 2017
Embed
What would you like to do?
defmodule Mango.CatalogTest do
use ExUnit.Case
alias Mango.Catalog
test "list_products/0 returns all products" do
[p1, p2] = Catalog.list_products
assert p1 == "Tomato"
assert p2 == "Apple"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment