2020-04-21 11:21:10 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-06-24 11:08:50 -04:00
|
|
|
RSpec.shared_context 'includes Spam constants' do
|
2020-05-20 20:08:06 -04:00
|
|
|
before do
|
2022-03-01 19:13:45 -05:00
|
|
|
stub_const('BLOCK_USER', Spam::SpamConstants::BLOCK_USER)
|
2020-05-20 20:08:06 -04:00
|
|
|
stub_const('DISALLOW', Spam::SpamConstants::DISALLOW)
|
2022-03-01 19:13:45 -05:00
|
|
|
stub_const('CONDITIONAL_ALLOW', Spam::SpamConstants::CONDITIONAL_ALLOW)
|
|
|
|
stub_const('OVERRIDE_VIA_ALLOW_POSSIBLE_SPAM', Spam::SpamConstants::OVERRIDE_VIA_ALLOW_POSSIBLE_SPAM)
|
2020-05-20 20:08:06 -04:00
|
|
|
stub_const('ALLOW', Spam::SpamConstants::ALLOW)
|
2021-05-06 20:10:27 -04:00
|
|
|
stub_const('NOOP', Spam::SpamConstants::NOOP)
|
2020-05-20 20:08:06 -04:00
|
|
|
end
|
2020-04-21 11:21:10 -04:00
|
|
|
end
|