Skip to content

Commit 8b432a7

Browse files
committed
Fix non-ASCII related specs
GitHub decided to throttle us a lot...
1 parent 4ec7d71 commit 8b432a7

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

spec/lib/http/client_spec.rb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,8 @@ def simple_response(body, status = 200)
105105
end
106106

107107
it "works like a charm in real world" do
108-
url = "http://git.io/jNeY"
109-
client = HTTP.follow
110-
expect(client.get(url).to_s).to include "support for non-ascii URIs"
108+
expect(HTTP.follow.get("https://bit.ly/2UaBT4R").parse(:json)).
109+
to include("url" => "https://httpbin.org/anything/könig")
111110
end
112111
end
113112
end
@@ -236,9 +235,9 @@ def simple_response(body, status = 200)
236235
end
237236

238237
it "works like a charm in real world" do
239-
url = "https://github.com/httprb/http.rb/pull/197/ö無"
240-
client = HTTP.follow
241-
expect(client.get(url).to_s).to include "support for non-ascii URIs"
238+
url = "https://httpbin.org/anything/ö無"
239+
240+
expect(HTTP.follow.get(url).parse(:json)).to include("url" => url)
242241
end
243242
end
244243

0 commit comments

Comments
 (0)