spec/reek/cli/application_spec.rb in reek-3.10.2 vs spec/reek/cli/application_spec.rb in reek-3.11

- old
+ new

@@ -13,19 +13,21 @@ expect(error.status).to eq Reek::CLI::Options::DEFAULT_ERROR_EXIT_CODE end end end - describe '#execute' do - let(:command) { double 'reek_command' } - let(:app) { Reek::CLI::Application.new [] } + context 'report_command' do + describe '#execute' do + let(:command) { double 'reek_command' } + let(:app) { Reek::CLI::Application.new [] } - before do - allow(Reek::CLI::ReekCommand).to receive(:new).and_return command - end + before do + allow(Reek::CLI::Command::ReportCommand).to receive(:new).and_return command + end - it "returns the command's result code" do - allow(command).to receive(:execute).and_return 'foo' - expect(app.execute).to eq 'foo' + it "returns the command's result code" do + allow(command).to receive(:execute).and_return 'foo' + expect(app.execute).to eq 'foo' + end end end end