add -inc to word count

use -inc to word count included files

also moved private function to bottom
This commit is contained in:
Henry Oswald
2015-09-09 12:43:32 +01:00
parent caef254b80
commit 561eaa0d66
3 changed files with 14 additions and 14 deletions

View File

@@ -191,7 +191,7 @@ describe "CompileManager", ->
it "should run the texcount command", ->
@directory = "#{@Settings.path.compilesDir}/#{@project_id}"
@file_path = "$COMPILE_DIR/#{@file_name}"
@command =[ "texcount", @file_path, "-out=" + @file_path + ".wc"]
@command =[ "texcount", '-inc', @file_path, "-out=" + @file_path + ".wc"]
@CommandRunner.run
.calledWith(@project_id, @command, @directory, @timeout)