require'spec_helper'feature'Abuse reports',feature: truedolet(:another_user){create(:user)}beforedologin_as:userendscenario'Report abuse'dovisituser_path(another_user)click_link'Report abuse'fill_in'abuse_report_message',with: 'This user send spam'click_button'Send report'expect(page).tohave_content'Thank you for your report'visituser_path(another_user)expect(page).tohave_button("Already reported for abuse")endend