gitlab-org--gitlab-foss/features/steps/admin/spam_logs.rb

19 lines
495 B
Ruby
Raw Normal View History

class Spinach::Features::AdminSpamLogs < Spinach::FeatureSteps
include SharedAuthentication
include SharedPaths
include SharedAdmin
step 'I should see list of spam logs' do
page.should have_content("Spam Logs")
spam_log = SpamLog.first
page.should have_content spam_log.title
page.should have_content spam_log.description
page.should have_link("Remove user")
page.should have_link("Block user")
end
step 'spam logs exist' do
create(:spam_log)
end
end