Skip to content

Commit

Permalink
Add rake to RSpec DSL
Browse files Browse the repository at this point in the history
`rake_files` defines a simple regex for rake tasks in lib
  • Loading branch information
agrberg committed Sep 14, 2016
1 parent ce8f1d0 commit 3d85260
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/guard/rspec/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3d85260

Please sign in to comment.