Last active
September 5, 2018 03:53
-
-
Save nykma/8b528a430cb5dea45f99b0d3c9b2714c to your computer and use it in GitHub Desktop.
Set subdomain of rack-test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def subdomain!(sub="test") | |
::Rack::Test::DEFAULT_HOST.replace "#{sub}.your_domain.com" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very useful! Thank you.