Module: Pathes

Defined in:
lib/rspec/flaky/pathes.rb

Class Method Summary collapse

Class Method Details

.assets_pathObject



21
22
23
# File 'lib/rspec/flaky/pathes.rb', line 21

def assets_path
  Pathname.new(__dir__).join("../../../assets/")
end

.base_pathObject



13
14
15
# File 'lib/rspec/flaky/pathes.rb', line 13

def base_path
  Pathname.new(FileUtils.pwd)
end

.relative_path(path) ⇒ Object



17
18
19
# File 'lib/rspec/flaky/pathes.rb', line 17

def relative_path path
  path.relative_path_from(summary_path).to_s
end

.summary_pathObject



9
10
11
# File 'lib/rspec/flaky/pathes.rb', line 9

def summary_path
  base_path.join('tmp/flaky_tests')
end

.template_pathObject



5
6
7
# File 'lib/rspec/flaky/pathes.rb', line 5

def template_path
  assets_path.join("layout.html.erb")
end