Module: Pathes
- Defined in:
- lib/rspec/flaky/pathes.rb
Class Method Summary collapse
- .assets_path ⇒ Object
- .base_path ⇒ Object
- .relative_path(path) ⇒ Object
- .summary_path ⇒ Object
- .template_path ⇒ Object
Class Method Details
.assets_path ⇒ Object
21 22 23 |
# File 'lib/rspec/flaky/pathes.rb', line 21 def assets_path Pathname.new(__dir__).join("../../../assets/") end |
.base_path ⇒ Object
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_path ⇒ Object
9 10 11 |
# File 'lib/rspec/flaky/pathes.rb', line 9 def summary_path base_path.join('tmp/flaky_tests') end |
.template_path ⇒ Object
5 6 7 |
# File 'lib/rspec/flaky/pathes.rb', line 5 def template_path assets_path.join("layout.html.erb") end |