Make the stats scenario pass now that it's real.

This commit is contained in:
Chris Eppstein 2009-10-29 09:57:05 -07:00
parent d1e1c1756d
commit 7d04f480b9
2 changed files with 11 additions and 5 deletions

View File

@ -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 |

View File

@ -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