donniezhanggit / acceptance_test_the_tv_guide Goto Github PK
View Code? Open in Web Editor NEWThis project forked from anielamw/acceptance_test_the_tv_guide
Acceptance tests are high-level tests that essentially walk through an application as a user would. Acceptance tests will read like a script of a user interacting with our application, ensuring acceptance criteria is met along the way. We might have a test that walks through a user signing up for our app, filling out a form successfully, or viewing a particular item's page. In this challenge you'll continue using your Test Driven Development skills by building out the apps functionality. Test driven development helps create a clean code base with only the code for the exact features we expect users to use. To be great TDD developers, you must first have an acceptance test written before starting on a new feature. Acceptance tests are based on user stories with acceptance criteria, and thus a well-written test thoroughly addresses these criteria. In this challenge, we have written the acceptance tests for the first two user stories. Let the failing tests guide your implementation of these features. Once all the tests are passing, fulfill the last user story by writing new tests and getting the tests to pass. Learning Goals Practice TDD by using Capybara to simulate a user interacting with a web page Writing Capybara tests driven by desired user story behavior