Sha256: 85c52544ca5b68f503b742a9549b441c92d4fc892ea9ce3ae4b134945c84f975
Contents?: true
Size: 642 Bytes
Versions: 1
Compression:
Stored size: 642 Bytes
Contents
require 'nuge/clients/grocer' describe Nuge::Clients::Grocer do describe '#initialize' do it 'passes initialization options directly to the service class' do client = Nuge::Clients::Grocer.new(certificate: '/path/to/cert.pem') expect(::Grocer).to receive(:pusher).with(certificate: '/path/to/cert.pem') client.pusher end end describe '#push' do it 'forwards formatted payloads through the service' do client = Nuge::Clients::Grocer.new(certificate: '/path/to/cert.pem') expect(client.pusher).to receive(:push).twice client.push(['1234', '5678'], alert: 'Hello!') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nuge-0.1.0 | spec/nuge/clients/grocer_spec.rb |