Skip to content

Commit

Permalink
Adding development gems + Guardfile for auto-running RSpec tests
Browse files Browse the repository at this point in the history
Change-Id: I1dcd5fef4f0a382fdc551e6b985fc80ac0cc185e
  • Loading branch information
trinitronx committed Nov 29, 2015
1 parent 74438b7 commit 1f55e3c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,11 @@ group :test do
gem 'serverspec', '~> 2.24' # Docker 1.8 support
gem 'specinfra', '~> 2.44' # for Docker backend + send_file & commit (https://github.com/mizzy/specinfra/releases/tag/v2.43.11)
end

group :development do
gem 'travis'
gem 'growl'
gem 'rb-fsevent'
gem 'guard', '~> 2.13'
gem 'guard-rspec'
end
17 changes: 17 additions & 0 deletions Guardfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# More info at https://github.com/guard/guard#readme

# guard 'rubocop' do
# watch(/.+\/.+\.rb$/)
# watch(/providers\/.+\.rb$/)
# watch(/recipes\/.+\.rb$/)
# watch(/resources\/.+\.rb$/)
# watch('metadata.rb')
# end

guard :rspec, cmd: 'rspec', all_on_start: true, notification: true do
watch(/^Dockerfile$/)
watch(/^spec\/(.+)_spec\.rb$/)
watch(/^spec\/helpers\/(.+)\.rb$/)
watch(/^spec\/(.+)\/_spec\.rb$/)
watch('spec/spec_helper.rb') { 'spec' }
end

0 comments on commit 1f55e3c

Please sign in to comment.