Class: Guard::Focus::Libraries
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Guard::Focus::Libraries
- Defined in:
- lib/guard/focus/libraries.rb
Class Method Summary collapse
Class Method Details
.[](name) ⇒ Object
20 21 22 23 |
# File 'lib/guard/focus/libraries.rb', line 20 def self.[](name) { cucumber: cucumber, rspec: rspec }[name] end |
.cucumber ⇒ Object
6 7 8 9 10 11 |
# File 'lib/guard/focus/libraries.rb', line 6 def self.cucumber new base_path: 'features', focus_regexp: /^\s*@focus/, executable: 'cucumber', extension: '.feature' end |
.rspec ⇒ Object
13 14 15 16 17 18 |
# File 'lib/guard/focus/libraries.rb', line 13 def self.rspec new base_path: 'spec', focus_regexp: /^\s*(describe|context|it).*?(:focus|focus:)/, executable: 'rspec', extension: '_spec.rb' end |