From d1a6490f2c4aff4d89a107d22fb8d364cd1ead1a Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Fri, 30 Oct 2009 09:27:59 -0700 Subject: [PATCH] Make the validator work even when you're not in the project directory. --- lib/compass/commands/validate_project.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/compass/commands/validate_project.rb b/lib/compass/commands/validate_project.rb index bd326560..2f024d36 100644 --- a/lib/compass/commands/validate_project.rb +++ b/lib/compass/commands/validate_project.rb @@ -31,7 +31,9 @@ module Compass def perform require 'compass/validator' UpdateProject.new(working_path, options).perform - Validator.new(project_css_subdirectory).validate() + Dir.chdir Compass.configuration.project_path do + Validator.new(project_css_subdirectory).validate() + end end class << self