lib/hexx/suit/install/Guardfile in hexx-suit-0.2.2 vs lib/hexx/suit/install/Guardfile in hexx-suit-1.0.0
- old
+ new
@@ -1,6 +1,15 @@
# encoding: utf-8
-guard :rspec, cmd: "rake test" do
- watch(%r{^spec/tests/.+_spec\.rb})
- watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
- watch(/^spec\/spec_helper\w*.rb/) { "spec" }
-end
+
+guard :rspec, cmd: "bundle exec rspec" do
+
+ watch(/^lib(.+)\.rb$/) do |m|
+ "spec/tests#{ m[1] }_spec.rb"
+ end
+
+ watch("spec/tests/*_spec.rb")
+
+ watch("lib/*.rb") { "spec" }
+ watch("spec/spec_helper.rb") { "spec" }
+ watch("spec/support/**/*.rb") { "spec" }
+
+end # guard :rspec