Restrict assert checks to .rb files.

This commit is contained in:
Jim Weirich
2011-12-04 02:41:54 -05:00
parent a3fcc3904a
commit a83000b4d3

View File

@@ -19,7 +19,7 @@ namespace "check" do
task :asserts do
puts "Checking for asserts missing the replacement text:"
begin
sh "egrep -n 'assert( |_)' src/about_* | egrep -v '__|_n_|project|about_assert' | egrep -v ' *#'"
sh "egrep -n 'assert( |_)' src/about_*.rb | egrep -v '__|_n_|project|about_assert' | egrep -v ' *#'"
puts
puts "Examine the above lines for missing __ replacements"
rescue RuntimeError => ex