Created
April 17, 2015 21:09
-
-
Save sedouard/217c4f997b1eaab49970 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
// 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