diff --git a/features/command_line.feature b/features/command_line.feature index 48f9bc6d..217410e6 100644 --- a/features/command_line.feature +++ b/features/command_line.feature @@ -236,7 +236,6 @@ Feature: Command Line Then my css is validated And I am informed that my css is valid. - @broken Scenario: Get stats for my project Given I am using the existing project in test/fixtures/stylesheets/compass When I run: compass stats @@ -251,3 +250,9 @@ Feature: Command Line | sass/utilities.sass | 2 | 0 | 0 | 2 | 5 | 11 | | Total.* | 44 | 9 | 0 | 45 | 299 | 832 | + Scenario: List frameworks registered with compass + When I run: compass frameworks + Then I should see the following lines of output: + | blueprint | + | compass | + diff --git a/features/step_definitions/command_line_steps.rb b/features/step_definitions/command_line_steps.rb index d16999aa..284fb48b 100644 --- a/features/step_definitions/command_line_steps.rb +++ b/features/step_definitions/command_line_steps.rb @@ -232,3 +232,6 @@ Then /^the image ([^ ]+) has a size of (\d+)x(\d+)$/ do |file, width, height| IO.read(file)[0x10..0x18].unpack('NN').should == [width.to_i, height.to_i] end +Then /^I should see the following lines of output:$/ do |table| + table.diff!([['blueprint'],['compass']]) +end diff --git a/lib/compass/commands/list_frameworks.rb b/lib/compass/commands/list_frameworks.rb index 72da07d7..3e1e05f8 100644 --- a/lib/compass/commands/list_frameworks.rb +++ b/lib/compass/commands/list_frameworks.rb @@ -13,9 +13,21 @@ module Compass end end class << self + def option_parser(arguments) + parser = Compass::Exec::CommandOptionParser.new(arguments) + parser.extend(Compass::Exec::GlobalOptionsParser) + end + def usage + option_parser([]).to_s + end def description(command) "List the available frameworks" end + def parse!(arguments) + parser = option_parser(arguments) + parser.parse! + parser.options + end end end end