Permalink
Browse files

Restrict assert checks to .rb files.

  • Loading branch information...
1 parent a3fcc39 commit a83000b4d395aa3ea8fd9aa0f737aef2687112fe @jimweirich jimweirich committed Dec 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 rakelib/checks.rake
View
2 rakelib/checks.rake
@@ -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

0 comments on commit a83000b

Please sign in to comment.