class Anyt::Config
Anyt
configuration
Public Instance Methods
filter_tests?()
click to toggle source
# File lib/anyt/config.rb, line 24 def filter_tests? only_tests || except_tests end
tests_filter()
click to toggle source
# File lib/anyt/config.rb, line 28 def tests_filter only_rxp = /(#{only_tests.join('|')})/ if only_tests except_rxp = /(#{except_tests.join('|')})/ if except_tests @tests_filter ||= lambda do |path| (only_rxp.nil? || only_rxp.match?(path)) && (except_rxp.nil? || !except_rxp.match?(path)) end end
tests_path()
click to toggle source
# File lib/anyt/config.rb, line 18 def tests_path return unless tests_relative_path File.expand_path(tests_relative_path, Dir.pwd) end