Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make change, run specs, see failures... forget and commit anyway???

  • Loading branch information...
commit 5508628cd53e337d58c249f4925c149fbbf64f74 1 parent 6a0137f
@ileitch authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 spec/rapns/daemon_spec.rb
View
5 spec/rapns/daemon_spec.rb
@@ -6,7 +6,7 @@ module Rails; end
let(:certificate) { stub }
let(:password) { stub }
let(:config) { stub(:pid_file => nil, :push_poll => 2, :airbrake_notify => false, :foreground => true) }
- let(:logger) { stub(:info => nil, :error => nil) }
+ let(:logger) { stub(:info => nil, :error => nil, :warn => nil) }
before do
Rapns::Daemon::Feeder.stub(:start)
@@ -65,8 +65,7 @@ module Rails; end
it 'prints a warning if there are no apps' do
Rapns::App.stub(:count => 0)
- Rapns::Daemon.should_receive(:puts).any_number_of_times
- Rapns::Daemon.should_receive(:exit).with(1)
+ logger.should_receive(:warn).any_number_of_times
Rapns::Daemon.start(config)
end
Please sign in to comment.
Something went wrong with that request. Please try again.