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