Class: Guard::RSpec::Inspector
- Inherits:
-
Object
- Object
- Guard::RSpec::Inspector
- Defined in:
- lib/guard/rspec/inspector.rb
Instance Method Summary collapse
- #clean(paths) ⇒ Object
- #excluded ⇒ Object
- #excluded=(glob) ⇒ Object
- #spec_paths ⇒ Object
- #spec_paths=(path_array) ⇒ Object
Instance Method Details
#clean(paths) ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/guard/rspec/inspector.rb', line 20 def clean(paths) paths.uniq! paths.compact! clear_spec_files_list_after do paths = paths.select { |path| should_run_spec_file?(path) } end paths.reject { |p| included_in_other_path?(p, paths) } end |
#excluded ⇒ Object
4 5 6 |
# File 'lib/guard/rspec/inspector.rb', line 4 def excluded @excluded || [] end |
#excluded=(glob) ⇒ Object
8 9 10 |
# File 'lib/guard/rspec/inspector.rb', line 8 def excluded=(glob) @excluded = Dir[glob.to_s] end |
#spec_paths ⇒ Object
12 13 14 |
# File 'lib/guard/rspec/inspector.rb', line 12 def spec_paths @spec_paths || [] end |
#spec_paths=(path_array) ⇒ Object
16 17 18 |
# File 'lib/guard/rspec/inspector.rb', line 16 def spec_paths=(path_array) @spec_paths = Array(path_array) end |