title: What's the best workflow for running jasmine tests on production code with grunt?
body: <p>I've scoured the internet looking for a description of the thing I'm trying to do but to no avail.  I would like to get unit tests in place for a web frontent I'm building that run directly on the production code by loading it with PhantomJS from the localhost.  I'd like to run a Grunt task that goes through my specs after loading the real site and interacting with the dom to test everything out.  I'm ALMOST there, but I can't actually get the page to load.</p>
  
  <p>If I add a host item to the jasmine options in my gruntfile like so:</p>
  
  <pre><code>options: {
          specs: 'spec/*Spec.js',
          helpers: 'spec/*Helper.js',
          vendor: ['app/assets/javascripts/src/libs/jquery-1.9.1.min.js', 'app/assets/javascripts/src/libs/underscore.js'],
          template: require('grunt-template-jasmine-requirejs'),
          host: "http://localhost:3000"
        }
  </code></pre>
  
  <p>I get a timeout error every time.  Nobody's really addressed this issue in the Grunt context, so I'm not sure what the story is, and I have no asynchronous tests running.  If I leave hosts out, it runs the tests successfully, but only on my raw javascript files through the local filesystem, not over the local network.  How do I configure my templates to allow Jasmine tests to run over a different host?</p>
  
  <p>UPDATE:</p>
  
  <p>Actually, it looks like Grunt doesn't actually poll against the local server, it just hangs and times out.</p>