Class: DirectorySearcherTest
- Defined in:
- lib/directory_searcher.rb
Overview
Test class for DirectorySearcher
Instance Method Summary collapse
-
#setup ⇒ Object
Setup method to initialize common test data.
-
#test_find_directory_names ⇒ Object
Test find_directory_names method.
-
#test_find_file_contents ⇒ Object
Test find_file_contents method.
-
#test_find_file_names ⇒ Object
Test find_file_names method.
Instance Method Details
#setup ⇒ Object
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_names ⇒ Object
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_contents ⇒ Object
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_names ⇒ Object
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 |