lower case keys and arrays of values. This is the way Net::HTTP normalizes them, but recording non-Net::HTTP requests resulted in cassettes with headers that deviated from this norm.
… idiomatic ruby.
…with the http_stubbing_adapter.
…r recorded when it's set to true.
…per-cassette :allow_real_http option, use a #ignore_localhost config setting. There's no way to make the :allow_real_http option work for the other http libraries. This is a simpler way to get the important functionality.
… HTTP library is passed as HTTP_LIB.
…e files, so the main feature/step files can be re-used for multiple http libraries.
…I in a cassette.
… VCR "pre-read" the body when recording a new request. My fix is to extend the already read response with a module that attempts to preserve the behavior of #read_body when the response has not yet been read.
…fault if HTTP_STUBBING_ADAPTER is not set.
…pful message about using VCR.
…in handy for getting VCR to work with webmock.
… the response is stored, in case the block has a return statement. Closes GH-1.
…better. The first pass of the code was based on "sandboxes" rather than "cassettes" and the terminology reflected that. Changes: * VCR.create_cassette! => VCR.insert_cassette * VCR.destroy_cassette! => VCR.eject_cassette * VCR.with_cassette => VCR.use_cassette * VCR::Cassette#destroy! => VCR::Cassette#eject * VCR::Cassette#cache_file => VCR::Cassette#file * VCR::Config.cache_dir => VCR::Config.cassette_library_dir * :unregistered record mode => :new_episodes record mode
…but I didn't a scenario demonstrating it before.
…s for URLs that return true for the given lambda.
… to the same URL with the same HTTP verb, but different responses. We have to register an array of responses with fakeweb.