Last active
September 5, 2018 03:53
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 |
Made my day! thanks alot
Very useful! Thank you.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for posting this.