change the eval grep unit tests to ignore the test file.

git-svn-id: https://beef.googlecode.com/svn/trunk@1407 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
wade@bindshell.net
2011-11-04 10:07:29 +00:00
parent 9cd77da9b0
commit e340b2b505

View File

@@ -21,7 +21,7 @@ class TC_Grep < Test::Unit::TestCase
def test_grep_eval
Dir['../../../**/*.rb'].each do |path|
File.open( path ) do |f|
next if path.eql?('../../../trunk/test/unit/tc_grep.rb')
next if /tc_grep.rb/.match(path) # skip this file
f.grep( /\Weval\W/im ) do |line|
assert(false, "Illegal use of 'eval' in framework: " + path + ':' + line)
end