Use shared_example rather than methods, feedback:
Use shared_example rather than methods, feedback:

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5347#note_13173653

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