Sha256: 7acdcd26a64d453fd113605fb0fcdee2d9e0de799ec5c90c3400e7c53143e1d2

Contents?: true

Size: 358 Bytes

Versions: 23

Compression:

Stored size: 358 Bytes

Contents

# frozen_string_literal: true

module KnapsackPro
  class TestFilePattern
    def self.call(adapter_class)
      KnapsackPro::Config::Env.test_file_pattern || adapter_class::TEST_DIR_PATTERN
    end

    def self.test_dir(adapter_class)
      test_file_pattern = call(adapter_class)
      test_file_pattern.split('/').first.gsub(/({)/, '')
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
knapsack_pro-7.13.0 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-7.12.1 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-7.12.0 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-7.11.0 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-7.10.0 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-7.9.0 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-7.8.2 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-7.8.1 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-7.8.0 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-7.7.0 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-7.6.2 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-7.6.1 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-7.6.0 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-7.1.0 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-7.0.1 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-7.0.0 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-6.0.4 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-6.0.3 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-6.0.2 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-6.0.1 lib/knapsack_pro/test_file_pattern.rb