add root dir

This commit is contained in:
Christian Mehlmauer
2013-02-10 22:10:27 +01:00
parent fd0f6ce3f9
commit cd1f22df0b

View File

@@ -28,7 +28,7 @@ describe 'wpscan main checks' do
it 'should check for valid syntax' do
Dir.glob("**/*.rb") do |file|
res = %x{ruby -c #{file} 2>&1}.split("\n")
res = %x{ruby -c #{ROOT_DIR}/#{file} 2>&1}.split("\n")
ok = res.select {|msg| msg =~ /Syntax OK/}
fail("Syntax error in #{file}:\n" + res.join("\n")) if ok.size != 1
end