import { moduleFor, test } from 'ember-qunit';

moduleFor('route:login', 'Unit | Route | login', {
  // Specify the other units that are required for this test.
  // needs: ['controller:foo']
});

test('it exists', function(assert) {
  let route = this.subject();
  assert.ok(route);
});

@@ -1,8 +1,35 @@
+import Ember from 'ember';%0A
 import %7B
@@ -125,188 +125,328 @@
 %7B%0A  
-// Specify the other units that are required for this test.%0A  // needs: %5B'controller:foo'%5D%0A%7D);%0A%0Atest('it exists', function(assert) %7B%0A  let route = this.subject();%0A  assert.ok(route
+needs: %5B'model:user'%5D%0A%7D);%0A%0Atest('it exists', function(assert) %7B%0A  let route = this.subject();%0A  assert.ok(route);%0A%7D);%0A%0Atest('has a user for its model', function(assert) %7B%0A  let route = this.subject();%0A  Ember.run(function() %7B%0A    let user = route.model();%0A    assert.equal(user.get('constructor.modelName'), 'user');%0A  %7D
 );%0A%7D

Add a login model hook test.