Sha256: f21e4ba8e0cfddbc960d9d3dad6086a2e32821b25a41584da57f8c0dae5096f2
Contents?: true
Size: 527 Bytes
Versions: 11
Compression:
Stored size: 527 Bytes
Contents
module VCR module Middleware module Common include VCR::VariableArgsBlockCaller def initialize(app, &block) raise ArgumentError.new("You must provide a block to set the cassette options") unless block @app, @cassette_arguments_block = app, block end private def cassette_arguments(env) arguments = CassetteArguments.new call_block(@cassette_arguments_block, arguments, env) [arguments.name, arguments.options] end end end end
Version data entries
11 entries across 11 versions & 1 rubygems