Module: Guard::PHPSpec::Inspector
- Defined in:
- lib/guard/phpspec/inspector.rb
Overview
The Guard::PHPSpec inspector verifies that the changed paths are valid for Guard::PHPSpec.
Class Attribute Summary (collapse)
-
+ (Object) tests_path
Returns the value of attribute tests_path.
Class Method Summary (collapse)
-
+ (Array<String>) clean(paths)
Clean the changed paths and return only valid PHPSpec tests files.
Class Attribute Details
+ (Object) tests_path
Returns the value of attribute tests_path
10 11 12 |
# File 'lib/guard/phpspec/inspector.rb', line 10 def tests_path @tests_path end |
Class Method Details
+ (Array<String>) clean(paths)
Clean the changed paths and return only valid PHPSpec tests files.
16 17 18 19 20 21 22 |
# File 'lib/guard/phpspec/inspector.rb', line 16 def clean(paths) paths.uniq! paths.compact! paths = paths.select { |p| test_file?(p) } clear_tests_files_list paths end |