Skip to content

Commit bce8772

Browse files
committed
fix test with feature flag stub
1 parent cb746af commit bce8772

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

spec/request/request_for_comments_spec.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,8 @@
88
let(:report_emails) { ['[email protected]'] }
99

1010
before do
11+
stub_const('RequestForCommentPolicy::REPORT_RECEIVER_CONFIGURED', true)
1112
allow_any_instance_of(ApplicationController).to receive(:current_user).and_return(user)
12-
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-
})
1713
end
1814

1915
it 'sends an email to let admins know about the report' do

0 commit comments

Comments
 (0)