summaryrefslogtreecommitdiff
path: root/features/steps
diff options
context:
space:
mode:
authorSemyon Pupkov <mail@semyonpupkov.com>2016-11-22 14:32:48 +0500
committerSemyon Pupkov <mail@semyonpupkov.com>2016-11-23 19:30:07 +0500
commit5636825fd0bd8b11ab9d85350246cdcc0fb28afe (patch)
tree556e36477ed3f6586af69eddfe916e114dc48854 /features/steps
parent60c2d5907226be8cca4b911cf5a85779ab587dd2 (diff)
downloadgitlab-ce-5636825fd0bd8b11ab9d85350246cdcc0fb28afe.tar.gz
Move abuse report spinach test to rspec
part of https://gitlab.com/gitlab-org/gitlab-ce/issues/23036
Diffstat (limited to 'features/steps')
-rw-r--r--features/steps/abuse_reports.rb32
1 files changed, 0 insertions, 32 deletions
diff --git a/features/steps/abuse_reports.rb b/features/steps/abuse_reports.rb
deleted file mode 100644
index 499accb0b08..00000000000
--- a/features/steps/abuse_reports.rb
+++ /dev/null
@@ -1,32 +0,0 @@
-class Spinach::Features::AbuseReports < Spinach::FeatureSteps
- include SharedAuthentication
-
- step 'I visit "Mike" user page' do
- visit user_path(user_mike)
- end
-
- step 'I click "Report abuse" button' do
- click_link 'Report abuse'
- end
-
- step 'I fill and submit abuse form' do
- fill_in 'abuse_report_message', with: 'This user send spam'
- click_button 'Send report'
- end
-
- step 'I should see success message' do
- page.should have_content 'Thank you for your report'
- end
-
- step 'user "Mike" exists' do
- user_mike
- end
-
- step 'I should see a red "Report abuse" button' do
- expect(page).to have_button("Already reported for abuse")
- end
-
- def user_mike
- @user_mike ||= create(:user, name: 'Mike')
- end
-end