Module: VCR::Cassette::SyntaxErrorHandling
- Included in:
- VCR::Cassette::Serializers::JSON, VCR::Cassette::Serializers::Psych, VCR::Cassette::Serializers::Syck, VCR::Cassette::Serializers::YAML
- Defined in:
- lib/vcr/cassette/serializers.rb
Instance Method Summary collapse
Instance Method Details
#handle_syntax_errors ⇒ Object
60 61 62 63 64 65 |
# File 'lib/vcr/cassette/serializers.rb', line 60 def handle_syntax_errors yield rescue *self::SYNTAX_ERRORS => e e. << "\nNote: This is a VCR cassette. If it is using ERB, you may have forgotten to pass the `:erb` option to `use_cassette`." raise end |