spec/reek/cli/reek_command_spec.rb in reek-1.2.7.2 vs spec/reek/cli/reek_command_spec.rb in reek-1.2.7.3

- old
+ new

@@ -12,15 +12,15 @@ end context 'with smells' do before :each do examiner = Examiner.new('def x(); end') - @cmd = ReekCommand.new([examiner], QuietReport) + @cmd = ReekCommand.new(QuietReport, ['def x(); end']) end it 'displays the correct text on the view' do - @view.should_receive(:output).with(/Uncommunicative Name/) + @view.should_receive(:output).with(/UncommunicativeName/) @cmd.execute(@view) end it 'tells the view it succeeded' do @view.should_receive(:report_smells) @@ -28,11 +28,10 @@ end end context 'with no smells' do before :each do - examiner = Examiner.new('def clean(); end') - @cmd = ReekCommand.new([examiner], QuietReport) + @cmd = ReekCommand.new(QuietReport, ['def clean(); end']) end it 'displays nothing on the view' do @view.should_receive(:output).with('') @cmd.execute(@view)