Sha256: 877676100e99468ca51adadf294f027d528a1d29bb4e652766864b82930acea9

Contents?: true

Size: 327 Bytes

Versions: 69

Compression:

Stored size: 327 Bytes

Contents

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

69 entries across 69 versions & 1 rubygems

Version Path
knapsack_pro-5.5.0 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-5.4.1 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-5.4.0 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-5.3.5 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-5.3.4 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-5.3.3 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-5.3.2 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-5.3.1 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-5.3.0 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-5.2.1 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-5.2.0 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-5.1.2 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-5.1.1 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-5.1.0 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-5.0.0 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-4.1.0 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-4.0.0 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-3.11.0 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-3.10.0 lib/knapsack_pro/test_file_pattern.rb
knapsack_pro-3.9.0 lib/knapsack_pro/test_file_pattern.rb