• Douglas Barbosa Alexandre's avatar
    Add a helper method to append path to a base URL · 5c519d11
    Douglas Barbosa Alexandre authored
    In Ruby 2.4, `URI.join("http://test//", "a").to_s` will
    remove the double slash, however it's not the case in
    Ruby 2.5. Using chomp should work better for the intention,
    as we're not trying to allow things like ../ or / paths
    resolution.
    
    This helper method append path to host, making sure
    there's one single slash as path separator.
    5c519d11
utils_spec.rb 3.73 KB