Add 'rake nof' task to remove focused describes and its

This commit is contained in:
Nathan Sobo
2011-12-23 15:56:53 -06:00
parent c2b102d9f4
commit a993f978e9

View File

@@ -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