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



220
221
222
223
224
# File 'lib/directory_searcher.rb', line 220

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

#test_find_directory_namesObject

Test find_directory_names method



227
228
229
230
# File 'lib/directory_searcher.rb', line 227

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



239
240
241
242
# File 'lib/directory_searcher.rb', line 239

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



233
234
235
236
# File 'lib/directory_searcher.rb', line 233

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