1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00

Remove unused variable in spec

It removes below ruby's warning.

* "warning: assigned but unused variable"
This commit is contained in:
Kenichi Kamiya 2013-01-26 22:40:32 +09:00
parent c68c9e3aad
commit d571867afa
2 changed files with 2 additions and 2 deletions

View file

@ -283,7 +283,7 @@ describe HTTParty::Request do
end end
it "returns the HTTParty::Response when the 300 does not contain a location header" do it "returns the HTTParty::Response when the 300 does not contain a location header" do
net_response = stub_response '', 300 stub_response '', 300
HTTParty::Response.should === @request.perform HTTParty::Response.should === @request.perform
end end
end end

View file

@ -49,7 +49,7 @@ class SSLTestServer
def thread_main def thread_main
until @stopping_mutex.synchronize{ @stopping } until @stopping_mutex.synchronize{ @stopping }
(rr,ww,ee) = select([@ssl_server.to_io], nil, nil, 0.1) (rr,_,_) = select([@ssl_server.to_io], nil, nil, 0.1)
next unless rr && rr.include?(@ssl_server.to_io) next unless rr && rr.include?(@ssl_server.to_io)