Skip to content

Instantly share code, notes, and snippets.

@sedouard
Created April 17, 2015 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sedouard/217c4f997b1eaab49970 to your computer and use it in GitHub Desktop.
Save sedouard/217c4f997b1eaab49970 to your computer and use it in GitHub Desktop.
// Start app in test mode with mocked services
import startApp from 'azureexplorer/tests/helpers/start-app';
// Replace this with your real tests.
test('it should give us models', function(assert) {
assert.expect(2);
App = startApp(null, assert);
store = App.__container__.lookup('store:main');
Ember.run(function(){
var newAccount = store.createRecord('account', {
name: 'Testaccount',
key: '5555-5555-5555-5555',
active: true
});
});
var controller = this.subject();
controller.store = store;
// test the controller calls the azure create container api
// we should see asserts come from the mock node service
Ember.run(function(){
controller.send('createContainer');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment