debian-mirror-gitlab/spec/support/shared_contexts/spam_constants.rb

13 lines
507 B
Ruby
Raw Normal View History

2020-05-24 23:13:21 +05:30
# frozen_string_literal: true
2020-07-28 23:09:34 +05:30
RSpec.shared_context 'includes Spam constants' do
2020-06-23 00:09:42 +05:30
before do
2022-05-07 20:08:51 +05:30
stub_const('BLOCK_USER', Spam::SpamConstants::BLOCK_USER)
2020-06-23 00:09:42 +05:30
stub_const('DISALLOW', Spam::SpamConstants::DISALLOW)
2022-05-07 20:08:51 +05:30
stub_const('CONDITIONAL_ALLOW', Spam::SpamConstants::CONDITIONAL_ALLOW)
stub_const('OVERRIDE_VIA_ALLOW_POSSIBLE_SPAM', Spam::SpamConstants::OVERRIDE_VIA_ALLOW_POSSIBLE_SPAM)
2020-06-23 00:09:42 +05:30
stub_const('ALLOW', Spam::SpamConstants::ALLOW)
2021-06-08 01:23:25 +05:30
stub_const('NOOP', Spam::SpamConstants::NOOP)
2020-06-23 00:09:42 +05:30
end
2020-05-24 23:13:21 +05:30
end