mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-02-05 07:01:03 -05:00
Add feature test for 500-on-follow error
This doesn't actually catch the problem; I'm committing it so other people can see it and suggest ways of making it stronger.
This commit is contained in:
@@ -47,6 +47,13 @@ feature "follows" do
|
||||
expect(page).to have_content "#{other_member.login_name}"
|
||||
end
|
||||
|
||||
scenario "does not die when passed an authenticity_token" do
|
||||
visit member_follows_path(
|
||||
member,
|
||||
:params => {:authenticity_token => "Ultima ratio regum"})
|
||||
expect(page.status_code).to equal 200
|
||||
end
|
||||
|
||||
scenario "has correct message and follow button after unfollow" do
|
||||
click_link 'Follow'
|
||||
click_link 'Unfollow'
|
||||
|
||||
Reference in New Issue
Block a user