Class: MiniAssert::TestRunnable
- Inherits:
-
Object
- Object
- MiniAssert::TestRunnable
- Defined in:
- lib/mini_assert/test_runnable.rb
Overview
Finds, load and run test in given directory
Instance Method Summary collapse
-
#initialize(path = '.', file_matcher = /.+_test\.rb$/) ⇒ TestRunnable
constructor
A new instance of TestRunnable.
- #run! ⇒ Object
Constructor Details
#initialize(path = '.', file_matcher = /.+_test\.rb$/) ⇒ TestRunnable
Returns a new instance of TestRunnable.
8 9 10 11 12 |
# File 'lib/mini_assert/test_runnable.rb', line 8 def initialize(path = '.', file_matcher = /.+_test\.rb$/) @path = path @file_matcher = file_matcher require_test end |
Instance Method Details
#run! ⇒ Object
14 15 16 |
# File 'lib/mini_assert/test_runnable.rb', line 14 def run! MiniAssert::TestSuite.new(testable_classes).run! end |