From a993f978e92a5d11ae5e490cd9ea6bad679418c3 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Fri, 23 Dec 2011 15:56:53 -0600 Subject: [PATCH] Add 'rake nof' task to remove focused describes and its --- Rakefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Rakefile b/Rakefile index 141b722b0..53eb20bd6 100644 --- a/Rakefile +++ b/Rakefile @@ -27,3 +27,9 @@ task :install do rm_rf "/Applications/Atomicity.app" cp_r "Cocoa/build/Debug/Atomicity.app /Applications" end + +desc "Remove any 'fit' or 'fdescribe' focus directives from the specs" +task :nof do + system %{find . -name *spec.coffee | xargs sed -E -i "" "s/f(it|describe) +(['\\"])/\\1 \\2/g"} +end +