Skip to content

Commit

Permalink
Add testing cases for the rejection of friendship from the show page
Browse files Browse the repository at this point in the history
  • Loading branch information
abdelp committed Jun 2, 2020
1 parent 1d16567 commit 9fafc25
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions spec/features/friendships_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,9 @@
click_button 'Add'
end

within 'ul li:nth-child(2) form' do
click_button 'Add'
end
visit user_path another_friend

within 'ul li:nth-child(3) form' do
click_button 'Add'
end
click_button 'Add'

expect(page).to have_content 'Friendship request was successfully sent.'
end
Expand Down

0 comments on commit 9fafc25

Please sign in to comment.