We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb746af commit bce8772Copy full SHA for bce8772
spec/request/request_for_comments_spec.rb
@@ -8,12 +8,8 @@
8
let(:report_emails) { ['[email protected]'] }
9
10
before do
11
+ stub_const('RequestForCommentPolicy::REPORT_RECEIVER_CONFIGURED', true)
12
allow_any_instance_of(ApplicationController).to receive(:current_user).and_return(user)
- codeocean_config = instance_double(CodeOcean::Config)
13
- allow(CodeOcean::Config).to receive(:new).with(:code_ocean).and_return(codeocean_config)
14
- allow(codeocean_config).to receive(:read).and_return({
15
- content_moderation: {report_emails:},
16
- })
17
end
18
19
it 'sends an email to let admins know about the report' do
0 commit comments