Set Rspec default GET request format to JSON

before :each do
  request.env["HTTP_ACCEPT"] = 'application/json'
end

Leave a Comment