title: How to Load a File for Testing with Jasmine Node?
body: <p>I have a simple JavaScript file, <code>color.js</code>, and a matching spec file, <code>colorSpec.js</code>.</p>
  
  <p><strong>color.js:</strong></p>
  
  <pre><code>function Color() 
  {
  
  }
  </code></pre>
  
  <p><strong>colorSpec.js:</strong></p>
  
  <pre><code>require('./color.js');
  
  describe("color", function() {
    it("should work", function() {
      new Color(255, 255, 255);
    });
  });
  </code></pre>
  
  <p>When I run <code>jasmine-node colorSpec.js</code>, I get the following exception:</p>
  
  <pre><code>ReferenceError: Color is not defined
  </code></pre>
  
  <p>How can I get Jasmine to load my <code>color.js</code> file before running <code>colorSpec.js</code>?</p>