diff --git a/app/controllers/tickets_controller.rb b/app/controllers/tickets_controller.rb index a37b2b95..485ba750 100644 --- a/app/controllers/tickets_controller.rb +++ b/app/controllers/tickets_controller.rb @@ -29,6 +29,7 @@ class TicketsController < ApplicationController @panels_layout = true @nonprofit = current_nonprofit @event = current_event + respond_to do |format| format.html format.csv do diff --git a/spec/controllers/support/shared_user_context.rb b/spec/controllers/support/shared_user_context.rb index 503c98e6..47a6c9d2 100644 --- a/spec/controllers/support/shared_user_context.rb +++ b/spec/controllers/support/shared_user_context.rb @@ -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 confirmation peer_to_peer].include?(action) + without_json_response = %i[cancellation all_npos edit confirmation peer_to_peer].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