73e848850c
Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
26 lines
523 B
Ruby
26 lines
523 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
describe 'Abuse reports' do
|
|
let(:another_user) { create(:user) }
|
|
|
|
before do
|
|
sign_in(create(:user))
|
|
end
|
|
|
|
it 'Report abuse' do
|
|
visit user_path(another_user)
|
|
|
|
click_link 'Report abuse'
|
|
|
|
fill_in 'abuse_report_message', with: 'This user sends spam'
|
|
click_button 'Send report'
|
|
|
|
expect(page).to have_content 'Thank you for your report'
|
|
|
|
visit user_path(another_user)
|
|
|
|
expect(page).to have_button("Already reported for abuse")
|
|
end
|
|
end
|