Skip to content

Instantly share code, notes, and snippets.

@AlphaGit
Created July 5, 2014 20:42
Show Gist options
  • Save AlphaGit/2da8aeea06222df6bd93 to your computer and use it in GitHub Desktop.
Save AlphaGit/2da8aeea06222df6bd93 to your computer and use it in GitHub Desktop.
Example for Ember test
module('My application tests', {
setup: function() {
App = startApp();
},
teardown: function() {
App.destroy();
}
});
test('Click on next page button takes user to next page', function() {
visit('/page/1');
fillIn('input.user-feedback', 'my feedback');
click('.btn.next-page');
andThen(function() {
equal(currentURL(), '/page/2', 'Error: should be in page 2.');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment