Sha256: ac1e8d253d7275702dc14312b9c76c6c36cd489a6c3aabff67f2a823a46a6a21
Contents?: true
Size: 544 Bytes
Versions: 1
Compression:
Stored size: 544 Bytes
Contents
module HTTParty class Request class << self attr_accessor :response_directory end def perform_actual_request response = http.request(@raw_request) if !defined?(DONT_SAVE) && !FakeWeb.registered_uri?(:post, uri) File.open(self.class.response_directory + "/_new.xml", 'w') {|f| f.write(response.body) } raise FakeWeb::NetConnectNotAllowedError.new("You have not registered this response, the response has been put in responses/_new.xml") else response end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shippinglogic-1.2.3 | spec/lib/interceptor.rb |