Created
July 5, 2014 20:42
-
-
Save AlphaGit/2da8aeea06222df6bd93 to your computer and use it in GitHub Desktop.
Example for Ember test
This file contains hidden or 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
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