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
|
||||
When I run: compass stats
|
||||
Then I am told statistics for each file:
|
||||
| filename | lines | mixins | selectors | properties |
|
||||
| src/screen.sass | 22 | 1 | 134 | 1,320 |
|
||||
| src/print.sass | 22 | 1 | 134 | 1,320 |
|
||||
| src/ie.sass | 22 | 1 | 134 | 1,320 |
|
||||
| Filename | Rules | Properties | Mixins Defs | Mixins Used |
|
||||
| sass/layout.sass | 0 | 0 | 0 | 1 |
|
||||
| sass/print.sass | 0 | 0 | 0 | 2 |
|
||||
| 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|
|
||||
# table is a Cucumber::Ast::Table
|
||||
pending
|
||||
table.raw.each do |row|
|
||||
re = Regexp.new row.join(' *\| *')
|
||||
@last_result.should =~ re
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user