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

11 lines
345 B
Ruby
Raw Normal View History

2020-05-24 23:13:21 +05:30
# frozen_string_literal: true
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)
end
2020-05-24 23:13:21 +05:30
end