title: AngularJS e2e testing in Rails stack: [object Object] has no method 'resumeBootstrap'
body: <p>It seems quite hard to get the AngularJS/Karma end-to-end testing environment working with a Rails backend.</p>
  
  <p>I have Karma installed and running with the following config file:</p>
  
  <pre><code>basePath = '../';
  
  files = [
    ANGULAR_SCENARIO,
    ANGULAR_SCENARIO_ADAPTER,
    'test/e2e/**/*.js'
  ];
  
  autoWatch = false;
  
  browsers = ['Chrome'];
  
  // singleRun = true;
  
  proxies = {
    '/': 'http://local.mywebsite.com:3000/'
  };
  
  urlRoot = 'e2e';
  
  junitReporter = {
    outputFile: 'test_out/e2e.xml',
    suite: 'e2e'
  };
  </code></pre>
  
  <p>Where <a href="http://local.mywebsite.com:3000/" rel="nofollow">http://local.mywebsite.com:3000/</a> is my rails application.</p>
  
  <p>I try a very simple test:</p>
  
  <pre><code>it('should redirect to /', function() {
    expect(browser().location().url()).toBe("/");
  });
  </code></pre>
  
  <p>But I am stuck with the following error:</p>
  
  <pre><code>http://localhost:9876/base/test/e2e/scenarios.js:8:5
  
  TypeError: Object [object Object] has no method 'resumeBootstrap'
      at HTMLIFrameElement.&lt;anonymous&gt; (http://localhost:9876/adapter/lib/angular-scenario.js:26285:27)
      at HTMLIFrameElement.jQuery.event.dispatch (http://localhost:9876/adapter/lib/angular-scenario.js:3064:9)
      at HTMLIFrameElement.elemData.handle.eventHandle (http://localhost:9876/adapter/lib/angular-scenario.js:2682:28)
      at k (http://connect.facebook.net/en_US/all.js:48:745)
  </code></pre>
  
  <p>Where scenarios.js comes from <a href="https://github.com/angular/angular-seed" rel="nofollow">https://github.com/angular/angular-seed</a>.</p>
  
  <p>Any idea how to make it work?</p>