 defmodule WineCellarTest do
   use ExUnit.Case
-
-  @cellar [
-    white: {"Chardonnay", 2015, "Italy"},
-    white: {"Chardonnay", 2014, "France"},
-    rose: {"Dornfelder", 2018, "Germany"},
-    red: {"Merlot", 2015, "France"},
-    white: {"Riesling ", 2017, "Germany"},
-    white: {"Pinot grigio", 2015, "Germany"},
-    red: {"Pinot noir", 2016, "France"},
-    red: {"Pinot noir", 2013, "Italy"}
-  ]
 
   describe "explain_colors/0" do
     # @tag :pending


    @tag :pending
    test "filters wines of chosen color by year and country" do
      assert WineCellar.filter(@cellar, :white, year: 2015, country: "Germany") == [
               {"Pinot grigio", 2015, "Germany"}
             ]
    end

    @tag :pending
    test "filters wines of chosen color by country and year" do
      assert WineCellar.filter(@cellar, :red, country: "France", year: 2015) == [
               {"Merlot", 2015, "France"}
             ]
    end


    @tag :pending
    test "filters wines of chosen color by country" do
      cellar = [
        white: {"Chardonnay", 2015, "Italy"},
        white: {"Chardonnay", 2014, "France"},
        rose: {"Dornfelder", 2018, "Germany"},
        red: {"Merlot", 2015, "France"},
        white: {"Riesling ", 2017, "Germany"},
        white: {"Pinot grigio", 2015, "Germany"},
        red: {"Pinot noir", 2016, "France"},
        red: {"Pinot noir", 2013, "Italy"}
      ]

      assert WineCellar.filter(cellar, :red, country: "France") == [
               {"Merlot", 2015, "France"},
               {"Pinot noir", 2016, "France"}
             ]
