first unit test and integration test

A quick test that the homepage works and that the login succeeds in three cases (failure, unconfirmed, and success).
It seems like if there was a concern about a test not working that either the tests can be abstracted and/or simplified, or that maybe an additional test like this one would just use the same kind of logic but to test a different scenario, rather than use capybara form submittal for one, and the a post for the other.