fixed cucumber features
This commit is contained in:
parent
b2f420db66
commit
b96789ce5b
@ -1,7 +1,7 @@
|
||||
PATH
|
||||
remote: .
|
||||
specs:
|
||||
compass (0.12.alpha.1.7d2d537)
|
||||
compass (0.12.alpha.1.b2f420d)
|
||||
chunky_png (~> 1.2)
|
||||
fssm (>= 0.2.7)
|
||||
sass (~> 3.1)
|
||||
|
@ -16,16 +16,17 @@ Feature: Extensions
|
||||
Scenario: Extensions directory for rails projects
|
||||
Given ruby supports fork
|
||||
And I'm in a newly created rails project: my_rails_project
|
||||
And the "my_rails_project/vendor/plugins/compass/extensions" directory exists
|
||||
And and I have a fake extension at my_rails_project/vendor/plugins/compass/extensions/testing
|
||||
And I run: compass init rails
|
||||
And the "vendor/plugins/compass_extensions" directory exists
|
||||
And and I have a fake extension at vendor/plugins/compass_extensions/testing
|
||||
When I run: compass frameworks
|
||||
Then the list of frameworks includes "testing"
|
||||
|
||||
@listframeworks
|
||||
Scenario: Shared extensions directory
|
||||
Given I am using the existing project in test/fixtures/stylesheets/compass
|
||||
And the "~/.compass/extensions" directory exists
|
||||
Given the "~/.compass/extensions" directory exists
|
||||
And and I have a fake extension at ~/.compass/extensions/testing
|
||||
And I am using the existing project in test/fixtures/stylesheets/compass
|
||||
When I run: compass frameworks
|
||||
Then the list of frameworks includes "testing"
|
||||
|
||||
|
@ -1,8 +1,10 @@
|
||||
Given /^the "([^\"]*)" directory exists$/ do |directory|
|
||||
directory.gsub!('~', ENV["HOME"]) if directory.include?('~/')
|
||||
FileUtils.mkdir_p directory
|
||||
end
|
||||
|
||||
Given /^and I have a fake extension at (.*)$/ do |directory|
|
||||
directory.gsub!('~', ENV["HOME"]) if directory.include?('~/')
|
||||
FileUtils.mkdir_p File.join(directory, 'stylesheets')
|
||||
FileUtils.mkdir_p File.join(directory, 'templates/project')
|
||||
open(File.join(directory, 'templates/project/manifest.rb'),"w") do |f|
|
||||
|
@ -17,7 +17,7 @@ module Compass
|
||||
def shared_extension_paths
|
||||
@shared_extension_paths ||= begin
|
||||
if ENV["HOME"] && File.directory?(ENV["HOME"])
|
||||
[File.expand_path("~/.compass/extensions")]
|
||||
[File.join(ENV["HOME"], ".compass", "extensions")]
|
||||
else
|
||||
[]
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user