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
|
2020-05-25 23:08:02 -04:00
|
|
|
stub_const('CONDITIONAL_ALLOW', Spam::SpamConstants::CONDITIONAL_ALLOW)
|
2020-05-20 20:08:06 -04:00
|
|
|
stub_const('DISALLOW', Spam::SpamConstants::DISALLOW)
|
|
|
|
stub_const('ALLOW', Spam::SpamConstants::ALLOW)
|
2020-05-22 05:08:09 -04:00
|
|
|
stub_const('BLOCK_USER', Spam::SpamConstants::BLOCK_USER)
|
2020-05-20 20:08:06 -04:00
|
|
|
end
|
2020-04-21 11:21:10 -04:00
|
|
|
end
|