Skip to content

Commit

Permalink
Add guardfile
Browse files Browse the repository at this point in the history
  • Loading branch information
wojteklu committed Aug 26, 2016
1 parent 66dcd8a commit a3fe805
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Guardfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# A guardfile for making Danger Plugins
# For more info see https://github.com/guard/guard#readme

# To run, use `bundle exec guard`.

guard :rspec, cmd: 'bundle exec rspec' do
require 'guard/rspec/dsl'
dsl = Guard::RSpec::Dsl.new(self)

# RSpec files
rspec = dsl.rspec
watch(rspec.spec_helper) { rspec.spec_dir }
watch(rspec.spec_support) { rspec.spec_dir }
watch(rspec.spec_files)

# Ruby files
ruby = dsl.ruby
dsl.watch_spec_files_for(ruby.lib_files)
end

0 comments on commit a3fe805

Please sign in to comment.