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

12 lines
401 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
stub_const('CONDITIONAL_ALLOW', Spam::SpamConstants::CONDITIONAL_ALLOW)
stub_const('DISALLOW', Spam::SpamConstants::DISALLOW)
stub_const('ALLOW', Spam::SpamConstants::ALLOW)
stub_const('BLOCK_USER', Spam::SpamConstants::BLOCK_USER)
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