Sha256: 214e8936f3d866123540b7eb8293e78aca5b05dd3b60a07146c42c5d153970a2
Contents?: true
Size: 1.39 KB
Versions: 2
Compression:
Stored size: 1.39 KB
Contents
################################################################## # Licensing Information # # # # The following code is licensed, as standalone code, under # # the Ruby License, unless otherwise directed within the code. # # # # For information on the license of this code when distributed # # with and used in conjunction with the other modules in the # # Amp project, please see the root-level LICENSE file. # # # # © Michael J. Edgar and Ari Brown, 2009-2010 # # # ################################################################## require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe Amp::Command::Help do it 'creates the help command' do Amp::Command::Help.should_not be_nil end it 'stores the help command in the all_commands list' do Amp::Command::Base.all_commands.should include(Amp::Command::Help) end it 'can be looked up as base help' do Amp::Command.for_name('help').should == Amp::Command::Help end it 'prints the help text of all commands' do run_command('help').should include('Thanks for using Amp!') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
amp-front-0.2.0 | spec/command_specs/help_spec.rb |
amp-front-0.1.0 | spec/command_specs/help_spec.rb |