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
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_names ⇒ Object
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_contents ⇒ Object
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_names ⇒ Object
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 |