Sha256: 186aa09c2ac1e6b733dd325fcfdb7aaff252fa9d09bc2764baedba7180c02cac
Contents?: true
Size: 651 Bytes
Versions: 4
Compression:
Stored size: 651 Bytes
Contents
module KnapsackPro class TestFileFinder def self.call(test_file_pattern) new(test_file_pattern).call end def initialize(test_file_pattern) @test_file_pattern = test_file_pattern end def call test_file_hashes = [] test_files.each do |test_file_path| test_file_hashes << test_file_hash_for(test_file_path) end test_file_hashes end private attr_reader :test_file_pattern def test_files Dir.glob(test_file_pattern).sort end def test_file_hash_for(test_file_path) { 'path' => TestFileCleaner.clean(test_file_path) } end end end
Version data entries
4 entries across 4 versions & 1 rubygems