Sha256: 4d8576021e9b3884fc1547cba3d6c1efb3fc3f63b960ea44bbb9b059a29caa67

Contents?: true

Size: 278 Bytes

Versions: 21

Compression:

Stored size: 278 Bytes

Contents

module VCRHelper
  def load_vcr_hash(fixture, key)
    yaml = YAML.load_file(VCR.configuration.cassette_library_dir + "/#{fixture}.yml")
    response = VCR::HTTPInteraction.from_hash(yaml["http_interactions"][0]).response.decompress.body
    JSON.parse(response)[key]
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
gecko-ruby-0.9.1 test/support/vcr_support.rb
gecko-ruby-0.9.0 test/support/vcr_support.rb
gecko-ruby-0.8.0 test/support/vcr_support.rb
gecko-ruby-0.2.6 test/support/vcr_support.rb
gecko-ruby-0.7.1 test/support/vcr_support.rb
gecko-ruby-0.7.0 test/support/vcr_support.rb
gecko-ruby-0.6.0 test/support/vcr_support.rb
gecko-ruby-0.5.0 test/support/vcr_support.rb
gecko-ruby-0.2.5 test/support/vcr_support.rb
gecko-ruby-0.2.4 test/support/vcr_support.rb
gecko-ruby-0.2.3 test/support/vcr_support.rb
gecko-ruby-0.2.2 test/support/vcr_support.rb
gecko-ruby-0.2.0 test/support/vcr_support.rb
gecko-ruby-0.1.0 test/support/vcr_support.rb
gecko-ruby-0.0.10 test/support/vcr_support.rb
gecko-ruby-0.0.9 test/support/vcr_support.rb
gecko-ruby-0.0.8 test/support/vcr_support.rb
gecko-ruby-0.0.7 test/support/vcr_support.rb
gecko-ruby-0.0.6 test/support/vcr_support.rb
gecko-ruby-0.0.5 test/support/vcr_support.rb