From e340b2b505f37539c382b2ea110bac0dfbd18eca Mon Sep 17 00:00:00 2001 From: "wade@bindshell.net" Date: Fri, 4 Nov 2011 10:07:29 +0000 Subject: [PATCH] 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 --- test/unit/tc_grep.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/tc_grep.rb b/test/unit/tc_grep.rb index f89b38181..c15199cf8 100644 --- a/test/unit/tc_grep.rb +++ b/test/unit/tc_grep.rb @@ -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