test(methods): add methods to without json response config
This commit is contained in:
parent
529745bf22
commit
aacd4af6c0
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ RSpec.shared_context :shared_user_context do
|
||||||
end
|
end
|
||||||
|
|
||||||
def accept(user_to_signin, method, action, *args)
|
def accept(user_to_signin, method, action, *args)
|
||||||
without_json_response = %i[cancellation all_npos edit confirmation peer_to_peer advanced guided basic].include?(action)
|
without_json_response = %i[cancellation all_npos edit confirmation peer_to_peer advanced guided basic donations_history fundraisers donate supporter_form btn dashboard stats].include?(action)
|
||||||
request.accept = 'application/json' unless without_json_response
|
request.accept = 'application/json' unless without_json_response
|
||||||
sign_in user_to_signin if user_to_signin
|
sign_in user_to_signin if user_to_signin
|
||||||
# allows us to run the helpers but ignore what the controller action does
|
# allows us to run the helpers but ignore what the controller action does
|
||||||
|
|
Loading…
Reference in a new issue