Sha256: d14a44ee4b46e50f682a76fdf9785e45ff20d657e5fc43c2cc2de43b9e66a802
Contents?: true
Size: 874 Bytes
Versions: 9
Compression:
Stored size: 874 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', 'version_command') include Reek include Reek::Cli describe VersionCommand do before :each do @text = 'Piece of interesting text' @cmd = VersionCommand.new(@text) @view = mock('view', :null_object => true) @view.should_not_receive(:report_smells) end it 'displays the text on the view' do @view.should_receive(:output).with(/#{@text}/) @cmd.execute(@view) end it 'displays the Reek version on the view' do @view.should_receive(:output).with(/#{Reek::VERSION}/) @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