summaryrefslogtreecommitdiff
path: root/features/steps/admin
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-08-06 16:57:04 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-08-06 16:57:04 +0200
commit02c4a0cc734320af315410b07a93843ca2f80bde (patch)
treeb78991cc1812aeba9b2118041b52425d27c034ea /features/steps/admin
parented7a8c9221fe544afb666e2b10672c759c821507 (diff)
downloadgitlab-ce-02c4a0cc734320af315410b07a93843ca2f80bde.tar.gz
Add tests for abuse report feature
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'features/steps/admin')
-rw-r--r--features/steps/admin/abuse_reports.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/features/steps/admin/abuse_reports.rb b/features/steps/admin/abuse_reports.rb
new file mode 100644
index 00000000000..87572e93dba
--- /dev/null
+++ b/features/steps/admin/abuse_reports.rb
@@ -0,0 +1,17 @@
+class Spinach::Features::AdminAbuseReports < Spinach::FeatureSteps
+ include SharedAuthentication
+ include SharedPaths
+ include SharedAdmin
+
+ step 'I should see list of abuse reports' do
+ page.should have_content("Abuse Reports")
+ page.should have_content AbuseReport.first.message
+ page.should have_link("Remove user")
+ end
+
+ step 'abuse reports exist' do
+ create(:abuse_report)
+ end
+end
+
+