title: Asserting on a list of items in Spock
body: <p>Using Spock 0.7 with Grails 2.04.  Trying to set up a testing environment.  I need some help in regards to testing a list of objects.</p>
  
  <p>I have a list of location objects.  I want to test a date on each of those objects.  I am iterating over but not sure how to make the test fail if the dates are not equal.  Is there a good way to test objects in a list?  I have listed below my then block of code.</p>
  
  <pre class="lang-groovy prettyprint-override"><code>then:
          weatherList != null
          weatherList.empty != null
          weatherList.size() == 3
          weatherList.each {
              Calendar today = Calendar.getInstance();
              today.clearTime()
              if(it.forecastDate != today) {
                  return false
              }
          }
  </code></pre>