Sha256: 292d078c1ba423ca6f338cc6b45d1ed1dce3ec8d8f03bfb20d49f9a941c2fd10

Contents?: true

Size: 500 Bytes

Versions: 1

Compression:

Stored size: 500 Bytes

Contents

# people generally prefix or suffix their test file names with these labels
# https://en.wikibooks.org/wiki/Ruby_Programming/Unit_testing#Naming_Conventions
labels = %w[ test ts tc t ]
labels_glob = '{' + labels.join(',') + '}'
labels_grep = '(' + labels.join('|') + ')'

$tork_config_test_glob = "**/{#{labels_glob}_*,*_#{labels_glob}}.rb"
$tork_config_test_grep = %r{.*(\b#{labels_grep}_[^/]+|[^/]+_#{labels_grep})\.rb$}

ENV['TORK_CONFIGS'] += ':test' if Dir['test/', $tork_config_test_glob].any?

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tork-19.9.0 lib/tork/config/test/config.rb