title: Loop Mocha tests?
body: <p>I'm trying to loop a mocha test suite (I want to test my system against a myriad of values with expected results), but I can't get it to work. For example:</p>
  
  <p><strong>spec/example_spec.coffee</strong>:</p>
  
  <pre><code>test_values = ["one", "two", "three"]
  
  for value in test_values
    describe "TestSuite", -&gt;
      it "does some test", -&gt;
        console.log value
        true.should.be.ok
  </code></pre>
  
  <p>The problem is that my console log output looks like this:</p>
  
  <pre><code>three
  three
  three
  </code></pre>
  
  <p>Where I want it to look like this:</p>
  
  <pre><code>one
  two
  three
  </code></pre>
  
  <p>How can I loop over these values for my mocha tests?</p>