Fix the broken validator tests

This commit is contained in:
Chris Eppstein 2010-11-27 16:48:36 -08:00
parent fd1dd25737
commit 633bb24302
4 changed files with 15 additions and 4 deletions

View File

@ -244,7 +244,7 @@ Feature: Command Line
@validator
Scenario: Validate the generated CSS
Given I am using the existing project in test/fixtures/stylesheets/compass
Given I am using the existing project in test/fixtures/stylesheets/valid
When I run: compass validate
Then my css is validated
And I am informed that my css is valid.

View File

@ -201,14 +201,14 @@ end
Then /^my css is validated$/ do
if @last_error =~ /The Compass CSS Validator could not be loaded/
pending "Missing Dependency: sudo gem install chriseppstein-compass-validator"
pending "Missing Dependency: sudo gem install compass-validator"
else
@last_result.should =~ /Compass CSS Validator/
@last_result.should =~ /files? validated/
end
end
Then /^I am informed that my css is valid.$/ do
@last_result.should =~ /Your CSS files are valid\./
@last_result.should =~ /Result: Valid/
end
Then /^I am told statistics for each file:$/ do |table|

View File

@ -0,0 +1,9 @@
# Require any additional compass plugins here.
css_dir = "tmp"
sass_dir = "sass"
images_dir = "assets/images"
javascripts_dir = "assets/javascripts"
# Set this to the root of your project when deployed:
http_path = "/"
# To enable relative paths to assets via compass helper functions. Uncomment:
relative_assets = true

View File

@ -0,0 +1,2 @@
div
color: red