Commit 8d4c727c authored by Orta Therox's avatar Orta Therox Committed by Samuel Giddins

Avoid the use of `grep`

parent adca7097
# Don't let testing shortcuts get into master by accident # Don't let testing shortcuts get into master by accident
fail('fdescribe left in tests') if `grep -r fdescribe spec/`.length > 1 (modified_files + added_files).each do |file|
fail('fit left in tests') if `grep -r "fit spec/ `.length > 1 fail('fdescribe left in tests') if File.read(file) =~ /fit/
fail('fit left in tests') if File.read(file) =~ /fdescribe/
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment