Module: VCR::Errors::UnhandledXmlRequestError::Suggestions
- Extended by:
- ActiveSupport::Concern
- Included in:
- VCR::Errors::UnhandledXmlRequestError
- Defined in:
- lib/vcr/errors/unhandled_xml_request_error/suggestions.rb
Instance Method Summary collapse
- #match_requests_on_suggestion ⇒ Object
- #suggestion_for(k) ⇒ Object
- #translated_cassette_description ⇒ Object
- #translated_suggestions ⇒ Object
Instance Method Details
#match_requests_on_suggestion ⇒ Object
8 9 10 |
# File 'lib/vcr/errors/unhandled_xml_request_error/suggestions.rb', line 8 def match_requests_on_suggestion :match_requests_on end |
#suggestion_for(k) ⇒ Object
4 5 6 |
# File 'lib/vcr/errors/unhandled_xml_request_error/suggestions.rb', line 4 def suggestion_for(k) k end |
#translated_cassette_description ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/vcr/errors/unhandled_xml_request_error/suggestions.rb', line 20 def translated_cassette_description translating do if cassette = VCR.current_cassette I18n.t( "vcr.cassette", file: cassette.file, mode: cassette.record_mode.inspect, matchers: cassette.match_requests_on.inspect ) else I18n.t("vcr.no_cassette") end end end |
#translated_suggestions ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/vcr/errors/unhandled_xml_request_error/suggestions.rb', line 12 def translated_suggestions translating do suggestions.map do |suggestion| I18n.t("vcr.suggestions.#{suggestion}") end end end |