Module: ShellShock::CommandSpec

Defined in:
lib/shell_shock/command_spec.rb

Instance Method Summary collapse

Instance Method Details

#with_help(text) ⇒ Object



7
8
9
# File 'lib/shell_shock/command_spec.rb', line 7

def with_help text
  it('should display help') { @command.help.should == text }
end

#with_usage(text) ⇒ Object



3
4
5
# File 'lib/shell_shock/command_spec.rb', line 3

def with_usage text
  it('should display usage') { @command.usage.should == text }
end