In the test block, I used something like this to set request.host from the subdomain:
def get_sub(sub = "one") @request.host = "#{sub}.local.me" end
I personally would put this in the spec_helper.rb file and the link when you need it.
For you in these tests, you set sub to "kong" , probably like
before :each do get_sub("kong") end
This joker also has the answer I found after via Google
pjammer
source share