Fix some tests around listing projects.
This commit is contained in:
parent
01277cd6ea
commit
9387ba7efb
@ -268,6 +268,7 @@ Feature: Command Line
|
|||||||
| sass/utilities.scss | 2 | 0 | 0 | 2 | 5 | 11 |
|
| sass/utilities.scss | 2 | 0 | 0 | 2 | 5 | 11 |
|
||||||
| Total.* | 44 | 9 | 0 | 45 | 299 | 832 |
|
| Total.* | 44 | 9 | 0 | 45 | 299 | 832 |
|
||||||
|
|
||||||
|
@listframeworks
|
||||||
Scenario: List frameworks registered with compass
|
Scenario: List frameworks registered with compass
|
||||||
When I run: compass frameworks
|
When I run: compass frameworks
|
||||||
Then I should see the following lines of output:
|
Then I should see the following lines of output:
|
||||||
|
@ -4,17 +4,19 @@ Feature: Extensions
|
|||||||
I can install extensions that others have created
|
I can install extensions that others have created
|
||||||
And I can create and publish my own extensions
|
And I can create and publish my own extensions
|
||||||
|
|
||||||
|
@listframeworks
|
||||||
Scenario: Extensions directory for stand_alone projects
|
Scenario: Extensions directory for stand_alone projects
|
||||||
Given I am using the existing project in test/fixtures/stylesheets/compass
|
Given I am using the existing project in test/fixtures/stylesheets/compass
|
||||||
And the "extensions" directory exists
|
And the "extensions" directory exists
|
||||||
And and I have a fake extension at extensions/testing
|
And and I have a fake extension at extensions/testing
|
||||||
When I run: compass --list-frameworks
|
When I run: compass frameworks
|
||||||
Then the list of frameworks includes "testing"
|
Then the list of frameworks includes "testing"
|
||||||
|
|
||||||
|
@listframeworks
|
||||||
Scenario: Extensions directory for rails projects
|
Scenario: Extensions directory for rails projects
|
||||||
Given I'm in a newly created rails project: my_rails_project
|
Given I'm in a newly created rails project: my_rails_project
|
||||||
And the "my_rails_project/vendor/plugins/compass/extensions" directory exists
|
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 and I have a fake extension at my_rails_project/vendor/plugins/compass/extensions/testing
|
||||||
When I run: compass --list-frameworks
|
When I run: compass frameworks
|
||||||
Then the list of frameworks includes "testing"
|
Then the list of frameworks includes "testing"
|
||||||
|
|
||||||
|
@ -5,9 +5,18 @@ end
|
|||||||
Given /^and I have a fake extension at (.*)$/ do |directory|
|
Given /^and I have a fake extension at (.*)$/ do |directory|
|
||||||
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|
|
||||||
|
f.puts %Q{
|
||||||
|
description "This is a fake extension"
|
||||||
|
|
||||||
|
help "this is the fake help"
|
||||||
|
|
||||||
|
welcome_message "this is a fake welcome"
|
||||||
|
}
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
Then /^the list of frameworks includes "([^\"]*)"$/ do |framework|
|
Then /^the list of frameworks includes "([^\"]*)"$/ do |framework|
|
||||||
@last_result.split("\n").map{|f| f.strip}.should include(framework)
|
@last_result.split("\n").map{|f| f.gsub(/(^\s+[*-]\s+)|(\s+$)/,'')}.should include(framework)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user