guard "zeus" do watch %r{^lib/(.+)\.rb$} do |m| "spec/lib/#{m[1]}_spec.rb" end watch %r{^app/models/<%= gem_name %>/(.+)\.rb$} do |m| "spec/models/<%= gem_name %>/#{m[1]}_spec.rb" end watch %r{^app/use_cases/<%= gem_name %>/(.+)\.rb$} do |m| "spec/use_cases/<%= gem_name %>/#{m[1]}_spec.rb" end watch %r{^app/controllers/<%= gem_name %>/api/v(\d+)/application_controller\.rb$} do |m| "spec/controllers/<%= gem_name %>/api/v#{m[1]}" end watch %r{^app/controllers/<%= gem_name %>/api/v(\d+)/(.+)_controller\.rb$} do |m| "spec/controllers/<%= gem_name %>/api/v#{m[1]}" end watch("config/routes.rb") { "spec/routing" } watch("spec/spec_helper.rb") { "spec" } watch %r{^spec/.+_spec\.rb$} watch(%r{^spec/factories/(.+)\.rb$}) { "spec/models" } watch(%r{^spec/support/(.+)\.rb$}) { "spec" } end