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



218
219
220
221
222
# File 'lib/directory_searcher.rb', line 218

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

#test_find_directory_namesObject

Test find_directory_names method



225
226
227
228
# File 'lib/directory_searcher.rb', line 225

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



237
238
239
240
# File 'lib/directory_searcher.rb', line 237

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



231
232
233
234
# File 'lib/directory_searcher.rb', line 231

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