Skip to content
This repository has been archived by the owner on Nov 29, 2017. It is now read-only.

Commit

Permalink
add guard for auto-running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
drnic committed Jul 10, 2013
1 parent 692a5d9 commit d746efb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Gemfile
Expand Up @@ -8,3 +8,7 @@ bosh_cli_path = File.expand_path("~/gems/cloudfoundry/bosh/bosh_cli")
if File.directory?(bosh_cli_path)
gem "bosh_cli", path: bosh_cli_path
end

group :development do
gem "guard-rspec"
end
7 changes: 7 additions & 0 deletions Guardfile
@@ -0,0 +1,7 @@
guard 'rspec', spec_paths: ["spec"] do
watch(%r{^spec/(.+_spec)\.rb$})
watch(%r{^lib/bosh/cli/commands/(.+)\.rb$}) { |m| "spec/plugin_spec.rb" }
watch(%r{^lib/bosh/cloudfoundry/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
end

0 comments on commit d746efb

Please sign in to comment.