forked from vzaar/vzaar-api-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGuardfile
More file actions
25 lines (20 loc) · 720 Bytes
/
Guardfile
File metadata and controls
25 lines (20 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
guard :rspec, cmd: "bundle exec rspec", all_on_start: true do
require "guard/rspec/dsl"
dsl = Guard::RSpec::Dsl.new(self)
clearing :on
# Feel free to open issues for suggestions and improvements
# 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)
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/vzaar_api.rb$}) { "spec" }
watch(%r{^lib/vzaar_api/(.+)\.rb$}) { "spec" }
watch(%r{^spec/support/(.+)\.rb$}) { 'spec' }
watch('spec/vzaar_api_helper.rb') { "spec" }
watch('spec/spec_helper.rb') { "spec" }
end