Skip to content

Commit

Permalink
add test for no results
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianSzturo committed Feb 2, 2015
1 parent b49c499 commit 370da34
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/countries_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ defmodule CountriesTest do
countries = Countries.filter_by(:region, "Europe")
assert Enum.count(countries) == 51
end

test "return empty list when there are no results" do
countries = Countries.filter_by(:region, "Azeroth")
assert countries == []
end

test "get all countries" do
countries = Countries.all
Expand Down

0 comments on commit 370da34

Please sign in to comment.