class Gem::FakeFetcher

def open_uri_or_path(path)

Thanks, FakeWeb!
def open_uri_or_path(path)
  data = find_data(path)
  body, code, msg = data
  response = Net::HTTPResponse.send(:response_class, code.to_s).new("1.0", code.to_s, msg)
  response.instance_variable_set(:@body, body)
  response.instance_variable_set(:@read, true)
  response
end