Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- subject {page}
- describe "sign in page" do
- before { visit signin_path}
- it { should have_title("Sign in")}
- it { should have_content("Sign in")}
- describe "with invalid information" do
- before { click_button "Sign in" }
- it { should have_title 'Sign in' }
- it { should have_error_message("Invalid")}
- describe "after visiting another page" do
- before { click_link "Home" }
- it { should_not have_error_message("Invalid")}
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement