Skip to content

Commit 1bafe05

Browse files
committed
fix: add user to test
1 parent 831bfa2 commit 1bafe05

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/request/request_for_comments_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
RSpec.describe 'POST /request_for_comments/:rfc_id/report', type: :request do
66
before do
7+
user = create(:learner)
78
allow_any_instance_of(ApplicationController).to receive(:current_user).and_return(user)
89
codeocean_config = instance_double(CodeOcean::Config)
910
allow(CodeOcean::Config).to receive(:new).with(:code_ocean).and_return(codeocean_config)

0 commit comments

Comments
 (0)