All commands must implement execute now.
This commit is contained in:
parent
591bd882bf
commit
559b981015
@ -6,7 +6,7 @@ module Compass
|
|||||||
self.options = options
|
self.options = options
|
||||||
end
|
end
|
||||||
|
|
||||||
def perform
|
def execute
|
||||||
Compass::Frameworks::ALL.each do |framework|
|
Compass::Frameworks::ALL.each do |framework|
|
||||||
puts framework.name
|
puts framework.name
|
||||||
end
|
end
|
||||||
|
@ -6,7 +6,7 @@ module Compass
|
|||||||
self.options = options
|
self.options = options
|
||||||
end
|
end
|
||||||
|
|
||||||
def perform
|
def execute
|
||||||
if options[:quiet]
|
if options[:quiet]
|
||||||
# The quiet option may make scripting easier
|
# The quiet option may make scripting easier
|
||||||
puts ::Compass.version[:string]
|
puts ::Compass.version[:string]
|
||||||
|
@ -11,6 +11,20 @@ class CommandLineTest < Test::Unit::TestCase
|
|||||||
Compass.configuration.reset!
|
Compass.configuration.reset!
|
||||||
end
|
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
|
def test_basic_install
|
||||||
within_tmp_directory do
|
within_tmp_directory do
|
||||||
compass "basic"
|
compass "basic"
|
||||||
|
Loading…
Reference in New Issue
Block a user