From cd1f22df0bf8b7b2a3b9f8890ba11d93afd653b9 Mon Sep 17 00:00:00 2001 From: Christian Mehlmauer Date: Sun, 10 Feb 2013 22:10:27 +0100 Subject: [PATCH] add root dir --- spec/wpscan_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/wpscan_spec.rb b/spec/wpscan_spec.rb index e7c5ebfd..9c34f5a6 100644 --- a/spec/wpscan_spec.rb +++ b/spec/wpscan_spec.rb @@ -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