spec/balboa/cli/command/last_command_spec.rb in balboa-0.1.6 vs spec/balboa/cli/command/last_command_spec.rb in balboa-0.1.7

- old
+ new

@@ -4,10 +4,10 @@ describe Balboa::CLI::Command::LastCommand do it 'prints out the result of interactor last method' do interactor = double('itr', last: 42) - expect(STDOUT).to receive(:puts).with("\n42") + output = described_class.new(interactor).execute - described_class.new(interactor).execute + expect(output).to eq("\n42") end end