Skip to content

Instantly share code, notes, and snippets.


shankardevy/catalog_test.exs Secret

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