title: Using Pretender with Ember CLI
body: <p>I am trying to get our authentication (<a href="https://github.com/simplabs/ember-simple-auth" rel="nofollow"><code>ember-simple-auth</code></a>) to be mocked by <a href="https://github.com/trek/pretender" rel="nofollow"><code>Pretender</code></a> to run in our tests, but for some reason I get the following error:</p>
  
  <p><code>Pretender intercepted POST http://api.dev/token but no handler was defined for this type of request</code></p>
  
  <p>Here is the setup I have at the  moment in my <code>login-test.js</code></p>
  
  <pre><code>module('Integration - Login Page', {
    setup: function() {
      App = startApp();
      server = new Pretender(function(){
        this.get('http://api.dev/v1/accounts/current', function(request) {
          var response = {
            "message": "unauthorized"
          };
  
          return [401, { "Content-Type": "application/json" }, JSON.stringify(response)];
        });
  
        this.post('http://api.dev/token', function(request) {
          var response = {
            "access_token": "myaccesstoken==",
            "token_type": "bearer"
          };
  
          return [200, { "Content-Type": "application/json" }, JSON.stringify(response)];
        });
      });
    },
    teardown: function() {
      Ember.run(App, App.destroy);
      server.shutdown();
    }
  });
  </code></pre>
  
  <p>Would anyone know why the url is not registering?</p>