Sha256: 9871ac93f1808e7f6ebf8d1501fdc010605c3b79e4c0e11125cdfa8f7ea1e313
Contents?: true
Size: 680 Bytes
Versions: 6
Compression:
Stored size: 680 Bytes
Contents
require 'spec_helper' require '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 = double('view').as_null_object @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
6 entries across 6 versions & 1 rubygems