Class: Anyt::Config

Inherits:
Anyway::Config
  • Object
show all
Defined in:
lib/anyt/config.rb

Overview

Anyt configuration

Instance Method Summary collapse

Instance Method Details

#filter_tests?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/anyt/config.rb', line 20

def filter_tests?
  !only_tests.nil?
end

#tests_filterObject



24
25
26
27
28
# File 'lib/anyt/config.rb', line 24

def tests_filter
  @tests_filter ||= begin
    /(#{only_tests.join('|')})/
  end
end

#tests_pathObject



14
15
16
17
18
# File 'lib/anyt/config.rb', line 14

def tests_path
  return unless tests_relative_path

  File.expand_path(tests_relative_path, Dir.pwd)
end