Created
July 10, 2014 22:09
-
-
Save jakecraige/8903f13eb2d4624c9707 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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