Skip to content

Commit

Permalink
Net::HTTP::Post does not have a method for read_timeout, so remove it
Browse files Browse the repository at this point in the history
  • Loading branch information
tpitale committed Sep 16, 2011
1 parent 928aee5 commit c1aee2b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion lib/garb/request/authentication.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ def send_request(ssl_mode)

def build_request
post = Net::HTTP::Post.new(uri.path)
post.read_timeout = Garb.read_timeout
post.set_form_data(parameters)
post
end
Expand Down
1 change: 0 additions & 1 deletion test/unit/garb/request/authentication_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ class AuthenticationTest < MiniTest::Unit::TestCase

post = mock
post.expects(:set_form_data).with(params)
post.expects(:read_timeout=).with(Garb.read_timeout)

Net::HTTP::Post.expects(:new).with('/accounts/ClientLogin').returns(post)

Expand Down

0 comments on commit c1aee2b

Please sign in to comment.