Sha256: ab0dc636f669cf9fb101d6f803910ee9c5ef965c11b64042a971b23aa3ddefcc
Contents?: true
Size: 717 Bytes
Versions: 9
Compression:
Stored size: 717 Bytes
Contents
require File.join(File.dirname(File.dirname(File.dirname(File.expand_path(__FILE__)))), 'spec_helper') require File.join(File.dirname(File.dirname(File.dirname(File.dirname(File.expand_path(__FILE__))))), 'lib', 'reek', 'cli', 'help_command') include Reek::Cli describe HelpCommand do before :each do @text = 'Piece of interesting text' @cmd = HelpCommand.new(@text) @view = mock('view', :null_object => true) @view.should_not_receive(:report_smells) end it 'displays the correct text on the view' do @view.should_receive(:output).with(@text) @cmd.execute(@view) end it 'tells the view it succeeded' do @view.should_receive(:report_success) @cmd.execute(@view) end end
Version data entries
9 entries across 9 versions & 1 rubygems