Created
July 22, 2015 11:57
-
-
Save joemckie/36e643d8b073a359f668 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
| var sw = require('selenium-webdriver'); | |
| describe("Route: /blog", function () { | |
| var driver; | |
| this.timeout(10000); // Give the requests some time to breathe | |
| before(function (done) { | |
| driver = new sw.Builder().forBrowser('chrome').build(); | |
| done(); | |
| }); | |
| after(function (done) { | |
| driver.quit(); | |
| done(); | |
| }); | |
| describe("/:blog_id", function () { | |
| it('should output the blog post title', function (done) { | |
| driver.get('http://localhost:3000/blog/12345678'); | |
| }); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment