Skip to content

Instantly share code, notes, and snippets.

@jgwhite
Created May 14, 2015 06:25
Show Gist options
  • Save jgwhite/11136014528d82d52c96 to your computer and use it in GitHub Desktop.
Save jgwhite/11136014528d82d52c96 to your computer and use it in GitHub Desktop.
--- 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');
+ });
});
@shellandbull
Copy link

Thanks! just applied

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment