Fix the broken validator tests
This commit is contained in:
parent
fd1dd25737
commit
633bb24302
@ -244,7 +244,7 @@ Feature: Command Line
|
|||||||
|
|
||||||
@validator
|
@validator
|
||||||
Scenario: Validate the generated CSS
|
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
|
When I run: compass validate
|
||||||
Then my css is validated
|
Then my css is validated
|
||||||
And I am informed that my css is valid.
|
And I am informed that my css is valid.
|
||||||
|
@ -201,14 +201,14 @@ end
|
|||||||
|
|
||||||
Then /^my css is validated$/ do
|
Then /^my css is validated$/ do
|
||||||
if @last_error =~ /The Compass CSS Validator could not be loaded/
|
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
|
else
|
||||||
@last_result.should =~ /Compass CSS Validator/
|
@last_result.should =~ /files? validated/
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
Then /^I am informed that my css is valid.$/ do
|
Then /^I am informed that my css is valid.$/ do
|
||||||
@last_result.should =~ /Your CSS files are valid\./
|
@last_result.should =~ /Result: Valid/
|
||||||
end
|
end
|
||||||
|
|
||||||
Then /^I am told statistics for each file:$/ do |table|
|
Then /^I am told statistics for each file:$/ do |table|
|
||||||
|
9
test/fixtures/stylesheets/valid/config.rb
vendored
Normal file
9
test/fixtures/stylesheets/valid/config.rb
vendored
Normal 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
|
2
test/fixtures/stylesheets/valid/sass/simple.sass
vendored
Normal file
2
test/fixtures/stylesheets/valid/sass/simple.sass
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
div
|
||||||
|
color: red
|
Loading…
Reference in New Issue
Block a user