Module: VCR::Errors::UnhandledXmlRequestError::Headers
- Included in:
- VCR::Errors::UnhandledXmlRequestError
- Defined in:
- lib/vcr/errors/unhandled_xml_request_error/headers.rb
Instance Method Summary collapse
Instance Method Details
#expected_headers ⇒ Object
6 7 8 |
# File 'lib/vcr/errors/unhandled_xml_request_error/headers.rb', line 6 def expected_headers @expected_headers ||= expected_request.try(:headers) || {} end |
#header_diff_keys ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/vcr/errors/unhandled_xml_request_error/headers.rb', line 10 def header_diff_keys expected_headers.diff(received_headers).map do |k,v| { key: k, expected: "#{expected_headers[k]}:<#{expected_headers[k].class}>", got: "#{received_headers[k]}:<#{received_headers[k].class}>" } end end |
#received_headers ⇒ Object
2 3 4 |
# File 'lib/vcr/errors/unhandled_xml_request_error/headers.rb', line 2 def received_headers @received_headers ||= request.headers end |