diff --git a/test/lint_test.rb b/test/lint_test.rb index 1a16cab..d719633 100644 --- a/test/lint_test.rb +++ b/test/lint_test.rb @@ -53,8 +53,8 @@ describe "lint test" do end it "host returns 200" do - uri = URI(data["host"]) - uri << uri.ends_with? '/' ? 'ping' : '/ping' + uri_end = data["host"].end_with?('/') ? 'ping' : '/ping' + uri = URI(data["host"] + uri_end) res = Net::HTTP.get_response(uri) assert_equal "200", res.code, "Expected 200 response from #{uri}" end