Skip to content

Instantly share code, notes, and snippets.

@jakecraige
Created July 10, 2014 22:09
Show Gist options
  • Save jakecraige/8903f13eb2d4624c9707 to your computer and use it in GitHub Desktop.
Save jakecraige/8903f13eb2d4624c9707 to your computer and use it in GitHub Desktop.
/* globals describe, before, after, it, lazy */
import Ember from 'ember';
import startApp from './start-app';
export default function(name, callback) {
return describe(name, function() {
before(function() {
this.app = startApp();
});
after(function() {
Ember.run(this.app, 'destroy');
});
lazy('session', function() {
return this.app.__container__.lookup('session:main');
});
callback.call(this);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment