Skip to content

Commit

Permalink
Add method aliases to eliminate warnings when running with -w
Browse files Browse the repository at this point in the history
  • Loading branch information
illuminerdi authored and chrisk committed May 24, 2009
1 parent b13cf7c commit 6e3dd19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/fake_web/ext/net_http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
module Net #:nodoc: all

class BufferedIO
alias :old_initialize :initialize
def initialize(io, debug_output = nil)
@read_timeout = 60
@rbuf = ''
Expand All @@ -25,6 +26,9 @@ def initialize(io, debug_output = nil)
end

class HTTP
class << self
alias :old_socket_type :socket_type
end
def self.socket_type
FakeWeb::StubSocket
end
Expand Down

0 comments on commit 6e3dd19

Please sign in to comment.