Class: KnapsackPro::TestFilePresenter
- Inherits:
-
Object
- Object
- KnapsackPro::TestFilePresenter
- Defined in:
- lib/knapsack_pro/test_file_presenter.rb
Class Method Summary collapse
Class Method Details
.paths(test_files) ⇒ Object
12 13 14 |
# File 'lib/knapsack_pro/test_file_presenter.rb', line 12 def self.paths(test_files) test_files.map { |t| t['path'] } end |
.stringify_paths(test_file_paths) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/knapsack_pro/test_file_presenter.rb', line 5 def self.stringify_paths(test_file_paths) test_file_paths .map do |test_file| %{"#{test_file}"} end.join(' ') end |
.test_files(paths) ⇒ Object
16 17 18 |
# File 'lib/knapsack_pro/test_file_presenter.rb', line 16 def self.test_files(paths) paths.map { |path| { 'path' => path } } end |