displays welcome back when test has started

This commit is contained in:
Mark Moser
2016-08-02 18:30:15 -05:00
parent 1a97bb16fa
commit a3eab2b27a
4 changed files with 32 additions and 0 deletions

View File

@ -44,6 +44,20 @@ class CandidateControllerTest < ActionDispatch::IntegrationTest
refute flash[:error].present?, "Should not be displaying an error message"
end
test "should display welcome view" do
setup_auth candidates(:martha)
get welcome_path
assert_select '.prft-heading', "Welcome!"
end
test "should display welcome back view" do
setup_auth candidates(:roy)
get welcome_path
assert_select '.prft-heading', "Welcome Back"
end
test "should redirect to thankyou when completed" do
setup_auth candidates(:richard)