Skip to content

Instantly share code, notes, and snippets.

@tylerjohnst
Created July 9, 2014 22:55
Show Gist options
  • Select an option

  • Save tylerjohnst/e5a956a51fbdeb733a00 to your computer and use it in GitHub Desktop.

Select an option

Save tylerjohnst/e5a956a51fbdeb733a00 to your computer and use it in GitHub Desktop.
moduleFor('controller:application', 'Application controller');
test('it has access to the currentUser object', function() {
var controller = this.subject();
Ember.run(function() {
var user = controller.get('currentUser');
ok(user, "User should exist but doesn't");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment