Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e8e6c60438
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (20 sloc) 0.609 kb
require 'test_helper'
class CommandLineTest < Test::Unit::TestCase
include Sprout::TestHelper
context "a new command line ui" do
setup do
@logger = Sprout::OutputBuffer.new
@instance = Sprout::CommandLine.new
@instance.logger = @logger
end
should "display the version number" do
@instance.parse! ['--version']
@instance.execute
assert_matches /sprout #{Sprout::VERSION::STRING}/, @logger.read
end
should "display helper if no options provided" do
@instance.expects :abort
@instance.parse! []
end
end
end
Jump to Line
Something went wrong with that request. Please try again.