Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (17 sloc) 0.42 kb
require 'spec_helper'
describe DO::CLI do
def cli; DO::CLI end
it 'should show help if args are empty' do
DO::CLI.start
logger.should match(/Usage/)
end
it 'should show task list if task does not exist' do
DO::CLI.start
logger.should match(/list/)
logger.should match(/version/)
end
it 'should run task' do
DO::CLI.start(:version)
logger.should match(DO::VERSION)
end
end
Jump to Line
Something went wrong with that request. Please try again.