Sha256: 7ec7a125f621e53f93f867034fbd4c31cac33d08d8eb9244af4b41b21b97a65a
Contents?: true
Size: 764 Bytes
Versions: 65
Compression:
Stored size: 764 Bytes
Contents
module KnapsackPro module TestCaseMergers class BaseMerger # values must be string to avoid circular dependency problem during loading files ADAPTER_TO_MERGER_MAP = { KnapsackPro::Adapters::RSpecAdapter => 'KnapsackPro::TestCaseMergers::RSpecMerger', } def self.call(adapter_class, test_files) merger_class = ADAPTER_TO_MERGER_MAP[adapter_class] || raise("Test case merger does not exist for adapter_class: #{adapter_class}") Kernel.const_get(merger_class).new(test_files).call end def initialize(test_files) @test_files = test_files end def call raise NotImplementedError end private attr_reader :test_files end end end
Version data entries
65 entries across 65 versions & 1 rubygems