Sha256: 6812134717e64793bb2bda9c13ea4fd9291d48015d082525419f472c9d1e4d4b
Contents?: true
Size: 695 Bytes
Versions: 26
Compression:
Stored size: 695 Bytes
Contents
require 'unit_spec_helper' describe Rpush::Client::ActiveRecord::Notification do let(:notification) { Rpush::Client::ActiveRecord::Notification.new } it 'allows assignment of many registration IDs' do notification.registration_ids = %w(a b) expect(notification.registration_ids).to eq %w(a b) end it 'allows assignment of a single registration ID' do notification.registration_ids = 'a' expect(notification.registration_ids).to eq ['a'] end it 'saves its parent App if required' do notification.app = Rpush::Client::ActiveRecord::App.new(name: "aname") expect(notification.app).to be_valid expect(notification).to be_valid end end if active_record?
Version data entries
26 entries across 26 versions & 2 rubygems