Last active
June 8, 2018 08:36
-
-
Save dogweather/0a0f147b34ecdf9a281f92c900b1e648 to your computer and use it in GitHub Desktop.
This file contains 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
# Simplify retrieving a path at a named host in request specs | |
def get_path(path, at_host:) | |
get path, headers: { host: at_host } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment