Add tests for setting trusted_proxies
Add tests for setting trusted_proxies

Each test reloads the trusted_proxies initializer, which in turn will set Rails.application.config.action_dispatch.trusted_proxies to something new. This will leak into the other tests, but the middleware that it is used in has already been loaded for the whole test suite, so it should have no impact.

icedwater/gitlabhq,darkrasid/gitlabhq,SVArago/gitlabhq,iiet/iiet-git,htve/GitlabForChinese,LUMC/gitlabhq,dreampet/gitlab,htve/GitlabForChinese,allysonbarros/gitlabhq,t-zuehlsdorff/gitlabhq,mr-dxdy/gitlabhq,htve/GitlabForChinese,Soullivaneuh/gitlabhq,larryli/gitlabhq,stoplightio/gitlabhq,t-zuehlsdorff/gitlabhq,openwide-java/gitlabhq,mr-dxdy/gitlabhq,Soullivaneuh/gitlabhq,Soullivaneuh/gitlabhq,screenpages/gitlabhq,dplarson/gitlabhq,screenpages/gitlabhq,Soullivaneuh/gitlabhq,SVArago/gitlabhq,openwide-java/gitlabhq,martijnvermaat/gitlabhq,htve/GitlabForChinese,icedwater/gitlabhq,axilleas/gitlabhq,mmkassem/gitlabhq,axilleas/gitlabhq,LUMC/gitlabhq,dplarson/gitlabhq,mmkassem/gitlabhq,LUMC/gitlabhq,LUMC/gitlabhq,openwide-java/gitlabhq,jirutka/gitlabhq,t-zuehlsdorff/gitlabhq,shinexiao/gitlabhq,allysonbarros/gitlabhq,dreampet/gitlab,icedwater/gitlabhq,shinexiao/gitlabhq,t-zuehlsdorff/gitlabhq,daiyu/gitlab-zh,allysonbarros/gitlabhq,daiyu/gitlab-zh,screenpages/gitlabhq,mmkassem/gitlabhq,iiet/iiet-git,larryli/gitlabhq,jirutka/gitlabhq,larryli/gitlabhq,stoplightio/gitlabhq,mmkassem/gitlabhq,axilleas/gitlabhq,mr-dxdy/gitlabhq,martijnvermaat/gitlabhq,stoplightio/gitlabhq,iiet/iiet-git,stoplightio/gitlabhq,dreampet/gitlab,mr-dxdy/gitlabhq,dplarson/gitlabhq,daiyu/gitlab-zh,SVArago/gitlabhq,larryli/gitlabhq,darkrasid/gitlabhq,darkrasid/gitlabhq,dplarson/gitlabhq,shinexiao/gitlabhq,daiyu/gitlab-zh,jirutka/gitlabhq,axilleas/gitlabhq,iiet/iiet-git,icedwater/gitlabhq,dreampet/gitlab,shinexiao/gitlabhq,screenpages/gitlabhq,martijnvermaat/gitlabhq,darkrasid/gitlabhq,SVArago/gitlabhq,jirutka/gitlabhq,martijnvermaat/gitlabhq,allysonbarros/gitlabhq,openwide-java/gitlabhq