Module: Fictium::RSpec::Autocomplete::Example
- Defined in:
- lib/fictium/rspec/autocomplete/example.rb
Class Method Summary collapse
Class Method Details
.process_http_response(example, response) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fictium/rspec/autocomplete/example.rb', line 6 def process_http_response(example, response) example.response ||= {} example.response.merge!( status: response.status, body: response.body, content_type: response.media_type, header: filter_header(response.header.to_h) ) process_http_request(example, response.request) return unless example.default? autocomplete_params.extract_from_response(example, response) end |