Sha256: b73bae4d2728d25fbd8bb847dc7782ce310e8db315b1a51c824ecfe4e5f865a9
Contents?: true
Size: 743 Bytes
Versions: 2
Compression:
Stored size: 743 Bytes
Contents
module SPV class Fixtures # Prepares incoming raw fixtures to be used for inserting # into VCR class Handler def initialize(options, convertor = Converter) @options = options @converter = convertor end def handle_raw(raw_fixtures, modifiers) converted_fixtures = @converter.convert_raw(raw_fixtures) modifiers.map do |modifier| converted_fixtures.each do |converted_fixture| modifier.modify(converted_fixture) end end converted_fixtures end def handle_set_raws(*fixtures_set, modifiers) fixtures_set.map do |fixtures_raw| handle_raw fixtures_raw, modifiers end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
site_prism.vcr-0.1.0 | lib/site_prism_vcr/fixtures/handler.rb |
site_prism.vcr-0.0.1 | lib/site_prism_vcr/fixtures/handler.rb |