diff --git a/spec/pipelining_spec.rb b/spec/pipelining_spec.rb index 3e07f2be..8bebbe35 100644 --- a/spec/pipelining_spec.rb +++ b/spec/pipelining_spec.rb @@ -27,7 +27,7 @@ pipe2.callback { processed += 1 pipe2.response_header.status.should == 200 - pipe2.response.should match('biography') + pipe2.response.should match(/ilya/i) stop.call } diff --git a/spec/socksify_proxy_spec.rb b/spec/socksify_proxy_spec.rb index 40445d8c..932d1f51 100644 --- a/spec/socksify_proxy_spec.rb +++ b/spec/socksify_proxy_spec.rb @@ -9,7 +9,7 @@ it "should use SOCKS5 proxy" do EventMachine.run { - http = EventMachine::HttpRequest.new('http://whatismyip.everdot.org/', proxy).get + http = EventMachine::HttpRequest.new('http://jsonip.com/', proxy).get http.errback { failed(http) } http.callback {