Class: DirectorySearcherTest

Inherits:
Minitest::Test
  • Object
show all
Defined in:
lib/directory_searcher.rb

Overview

Test class for DirectorySearcher

Instance Method Summary collapse

Instance Method Details

#setupObject

Setup method to initialize common test data



216
217
218
219
220
# File 'lib/directory_searcher.rb', line 216

def setup
  @pattern = /test_pattern/
  @paths = ['./spec']
  @searcher = DirectorySearcher.new(@pattern, @paths)
end

#test_find_directory_namesObject

Test find_directory_names method



223
224
225
226
# File 'lib/directory_searcher.rb', line 223

def test_find_directory_names
  # Add assertions based on your test directory structure and expected results
  assert_equal [], @searcher.find_directory_names
end

#test_find_file_contentsObject

Test find_file_contents method



235
236
237
238
# File 'lib/directory_searcher.rb', line 235

def test_find_file_contents
  # Add assertions based on your test directory structure and expected results
  assert_equal ({}), @searcher.find_file_contents
end

#test_find_file_namesObject

Test find_file_names method



229
230
231
232
# File 'lib/directory_searcher.rb', line 229

def test_find_file_names
  # Add assertions based on your test directory structure and expected results
  assert_equal [], @searcher.find_file_names
end