# encoding: utf-8 guard :rspec, cmd: "bundle exec rspec" do watch("spec/spec_helper.rb") { "spec" } watch("lib/policy.rb") { "spec" } watch(%r{^lib/policy/cli/}) { "spec/tests/policy/cli_spec.rb" } watch(/^(bin|lib)\/(.+)\.rb$/) do |m| "spec/tests/#{ m[1] }/#{ m[2] }_spec.rb" end watch(%r{^spec/tests/.+_spec\.rb$}) end # guard :rspec