Make the stats scenario pass now that it's real.
This commit is contained in:
parent
d1e1c1756d
commit
7d04f480b9
@ -210,8 +210,9 @@ Feature: Command Line
|
|||||||
Given I am using the existing project in test/fixtures/stylesheets/compass
|
Given I am using the existing project in test/fixtures/stylesheets/compass
|
||||||
When I run: compass stats
|
When I run: compass stats
|
||||||
Then I am told statistics for each file:
|
Then I am told statistics for each file:
|
||||||
| filename | lines | mixins | selectors | properties |
|
| Filename | Rules | Properties | Mixins Defs | Mixins Used |
|
||||||
| src/screen.sass | 22 | 1 | 134 | 1,320 |
|
| sass/layout.sass | 0 | 0 | 0 | 1 |
|
||||||
| src/print.sass | 22 | 1 | 134 | 1,320 |
|
| sass/print.sass | 0 | 0 | 0 | 2 |
|
||||||
| src/ie.sass | 22 | 1 | 134 | 1,320 |
|
| sass/reset.sass | 4 | 1 | 0 | 2 |
|
||||||
|
| sass/utilities.sass | 2 | 0 | 0 | 2 |
|
||||||
|
|
||||||
|
@ -182,5 +182,10 @@ end
|
|||||||
|
|
||||||
Then /^I am told statistics for each file:$/ do |table|
|
Then /^I am told statistics for each file:$/ do |table|
|
||||||
# table is a Cucumber::Ast::Table
|
# table is a Cucumber::Ast::Table
|
||||||
pending
|
table.raw.each do |row|
|
||||||
|
re = Regexp.new row.join(' *\| *')
|
||||||
|
@last_result.should =~ re
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user