File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed
Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change 44
55RSpec . describe 'POST /request_for_comments/:rfc_id/report' , type : :request do
66 before do
7- login_as ( create ( :learner ) )
7+ allow_any_instance_of ( ApplicationController ) . to receive ( :current_user ) . and_return ( user )
88 codeocean_config = instance_double ( CodeOcean ::Config )
99 allow ( CodeOcean ::Config ) . to receive ( :new ) . with ( :code_ocean ) . and_return ( codeocean_config )
1010 allow ( codeocean_config ) . to receive ( :read ) . and_return ( {
Original file line number Diff line number Diff line change @@ -6,13 +6,6 @@ def sign_in(user, password)
66 end
77end
88
9- module RequestLoginHelper
10- def login_as ( user )
11- allow_any_instance_of ( ApplicationController ) . to receive ( :current_user ) . and_return ( user )
12- end
13- end
14-
159RSpec . configure do |config |
1610 config . include Authentication , type : :system
17- config . include RequestLoginHelper , type : :request
1811end
You can’t perform that action at this time.
0 commit comments