Set Jekyll path relative to the env file, not to CWD

This commit is contained in:
Parker Moore 2013-04-14 21:00:03 +02:00
parent 48795462c2
commit df868b308a
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ World do
end
TEST_DIR = File.join('/', 'tmp', 'jekyll')
JEKYLL_PATH = File.join(ENV['PWD'], 'bin', 'jekyll')
JEKYLL_PATH = File.join(File.dirname(__FILE__), '..', '..', 'bin', 'jekyll')
def run_jekyll(opts = {})
command = JEKYLL_PATH.clone