aboutsummaryrefslogtreecommitdiffstats
path: root/test/integration
AgeCommit message (Collapse)Author
2015-12-08Add logged_in.erb templateTeddy Wing
Template that displays when the user is logged in. Adjust the login test to check for the text in this template.
2015-12-08auth_test.rb: Add logout testTeddy Wing
2015-12-08auth_test.rb: Create login helpersTeddy Wing
Create a couple new methods to extract login functionality and remove duplicate test code.
2015-12-08Add test for unrecognised userTeddy Wing
When logging in with unrecognised credentials, the response should include "Unrecognized user".
2015-12-08Add test that fills in login formTeddy Wing
* Write a `setup` method to extract the '/' route visit * Change the logic of `test_index_has_login_form` to check for the presence of 'Login' text and a form (super basic) * Create a new test that fills in the login form and clicks the "Login" button. For now just checks that we get a successful response.
2015-12-07Add a simple Capybara testTeddy Wing
* Add Rakefile to run tests with `rake` * Add a `test_helper` to take care of the setup that Capybara requires in order to run * Add a super basic test to see if Capybara works * Put app in a `Sinatra::Base` subclass so that we can tell Capybara where to find it