Sha256: 0ae65156edfbfe11bdbc955a80987e144b0320d3490eeb13481846884ae54a9b
Contents?: true
Size: 511 Bytes
Versions: 8
Compression:
Stored size: 511 Bytes
Contents
require 'spec_helper' require 'grocer/passbook_notification' require 'grocer/shared_examples_for_notifications' describe Grocer::PassbookNotification do describe 'binary format' do let(:payload_options) { Hash.new } include_examples 'a notification' it 'does not require a payload' do expect(payload_hash(notification)[:aps]).to be_empty end it 'encodes the payload length' do payload_length = bytes[43...45].to_i expect(payload_length).to be_zero end end end
Version data entries
8 entries across 8 versions & 1 rubygems