summaryrefslogtreecommitdiff
path: root/features/steps/admin/abuse_reports.rb
blob: 87572e93dbaede7c401ec946aedcc325e6857819 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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