Sha256: 557bdcabb750dc451861e1d569550fcf0d9b4132447fdae4232a1aa62b012c63
Contents?: true
Size: 636 Bytes
Versions: 12
Compression:
Stored size: 636 Bytes
Contents
require 'unit_spec_helper' describe Rpush, 'apns_feedback' do let!(:app) { Rpush::Apns::App.create!(name: 'test', environment: 'production', certificate: TEST_CERT) } let(:receiver) { double(check_for_feedback: nil) } before do Rpush::Daemon::Apns::FeedbackReceiver.stub(new: receiver) end it 'initializes the store' do Rpush::Daemon.should_receive(:initialize_store) Rpush.apns_feedback end it 'checks feedback for each app' do Rpush::Daemon::Apns::FeedbackReceiver.should_receive(:new).with(app).and_return(receiver) receiver.should_receive(:check_for_feedback) Rpush.apns_feedback end end
Version data entries
12 entries across 12 versions & 1 rubygems