Class: Net::HTTP

Inherits:
Object show all
Defined in:
test/test_state/drugs/incompleteregistrations.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) head(*args) Also known as: _old_head



14
15
16
17
18
19
20
# File 'test/test_state/drugs/incompleteregistrations.rb', line 14

def head(*args)
  if(/file\.xls/.match args.first)
    HTTPOK.new(nil, nil, nil)
  else
    _old_head(*args)
  end
end