Set Rspec default GET request format to JSON April 22, 2023 by Tarik before :each do request.env["HTTP_ACCEPT"] = 'application/json' end