diff --git a/lib/guard/rspec/dsl.rb b/lib/guard/rspec/dsl.rb index 1efde494..6b1fffa1 100644 --- a/lib/guard/rspec/dsl.rb +++ b/lib/guard/rspec/dsl.rb @@ -47,6 +47,12 @@ def rails(options = {}) @rails ||= _build_rails_rules(_view_extensions(options) * "|") end + def rake + @rake ||= OpenStruct.new.tap do |rake| + rake.rake_files = %r{^(lib/.+)\.rake} + end + end + private def _view_extensions(options)