Permalink
Browse files

Adding guard to moped

  • Loading branch information...
1 parent c183737 commit 0e244d70e76285c834a6d9a788bfb36230bfce56 @durran durran committed Jan 24, 2012
Showing with 10 additions and 0 deletions.
  1. +9 −0 Guardfile
  2. +1 −0 moped.gemspec
View
@@ -0,0 +1,9 @@
+# vim:set filetype=ruby:
+guard(
+ "rspec",
+ all_after_pass: false,
+ cli: "--fail-fast --tty --format documentation --colour") do
+
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^lib/(.+)\.rb$}) { |match| "spec/#{match[1]}_spec.rb" }
+end
View
@@ -12,6 +12,7 @@ Gem::Specification.new do |s|
s.description = s.summary
s.add_development_dependency "rspec"
+ s.add_development_dependency "guard-rspec"
s.files = Dir.glob("lib/**/*") + %w(README.md)
s.require_path = "lib"

0 comments on commit 0e244d7

Please sign in to comment.