diff --git a/lib/compass/commands/list_frameworks.rb b/lib/compass/commands/list_frameworks.rb index fe7f6088..27801945 100644 --- a/lib/compass/commands/list_frameworks.rb +++ b/lib/compass/commands/list_frameworks.rb @@ -6,7 +6,7 @@ module Compass self.options = options end - def perform + def execute Compass::Frameworks::ALL.each do |framework| puts framework.name end diff --git a/lib/compass/commands/print_version.rb b/lib/compass/commands/print_version.rb index 244616ba..d06a0d8a 100644 --- a/lib/compass/commands/print_version.rb +++ b/lib/compass/commands/print_version.rb @@ -6,7 +6,7 @@ module Compass self.options = options end - def perform + def execute if options[:quiet] # The quiet option may make scripting easier puts ::Compass.version[:string] diff --git a/test/command_line_test.rb b/test/command_line_test.rb index 841f9fd4..13fec482 100644 --- a/test/command_line_test.rb +++ b/test/command_line_test.rb @@ -11,6 +11,20 @@ class CommandLineTest < Test::Unit::TestCase Compass.configuration.reset! end + def test_print_version + compass "-vq" + assert_match /\d+\.\d+\.\d+( [0-9a-f]+)?/, @last_result + end + + def test_list_frameworks + compass "--list-frameworks" + assert_equal(<<-FRAMEWORKS, @last_result) +blueprint +compass +yui +FRAMEWORKS + end + def test_basic_install within_tmp_directory do compass "basic"