test(button): remove from json views

This commit is contained in:
Luis Castro 2019-08-01 15:17:17 +02:00
parent 2c12b5864b
commit 529745bf22
No known key found for this signature in database
GPG key ID: 0A8F33D4C4E27639

View file

@ -85,7 +85,7 @@ RSpec.shared_context :shared_user_context do
end
def accept(user_to_signin, method, action, *args)
without_json_response = %i[cancellation all_npos edit confirmation peer_to_peer].include?(action)
without_json_response = %i[cancellation all_npos edit confirmation peer_to_peer advanced guided basic].include?(action)
request.accept = 'application/json' unless without_json_response
sign_in user_to_signin if user_to_signin
# allows us to run the helpers but ignore what the controller action does