Created
May 14, 2015 06:25
-
-
Save jgwhite/11136014528d82d52c96 to your computer and use it in GitHub Desktop.
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
--- tests/acceptance/create-homework-test.js | |
+++ tests/acceptance/create-homework-test.js | |
@@ -1,16 +1,14 @@ | |
test('Creating a new homework', function(assert) { | |
visit('/homeworks/new'); | |
- andThen(function() { | |
- const title = 'Underwater basket weaving'; | |
- const description = 'an amazing the description about basket weaving'; | |
+ const title = 'Underwater basket weaving'; | |
+ const description = 'an amazing the description about basket weaving'; | |
- fillIn('.homework-title', title); | |
- fillIn('.homework-description', description); | |
+ fillIn('.homework-title', title); | |
+ fillIn('.homework-description', description); | |
- click('.submit-homework'); | |
- andThen(function() { | |
- assert.equal(currentURL(), '/homeworks/1', 'creates a homework and redirects to show page'); | |
- }); | |
- }); | |
+ click('.submit-homework'); | |
+ andThen(function() { | |
+ assert.equal(currentURL(), '/homeworks/1', 'creates a homework and redirects to show page'); | |
+ }); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks! just applied