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

Version Path
rpush-4.1.1 spec/unit/client/active_record/notification_spec.rb
rpush-4.1.0 spec/unit/client/active_record/notification_spec.rb
rpush-4.0.1 spec/unit/client/active_record/notification_spec.rb
rpush-4.0.0 spec/unit/client/active_record/notification_spec.rb
rpush-3.3.1 spec/unit/client/active_record/notification_spec.rb
rpush-3.3.0 spec/unit/client/active_record/notification_spec.rb
rpush_extended-3.2.6 spec/unit/client/active_record/notification_spec.rb
rpush_extended-3.2.5 spec/unit/client/active_record/notification_spec.rb
rpush-3.2.4 spec/unit/client/active_record/notification_spec.rb
rpush-3.2.3 spec/unit/client/active_record/notification_spec.rb
rpush-3.2.2 spec/unit/client/active_record/notification_spec.rb
rpush-3.2.1 spec/unit/client/active_record/notification_spec.rb
rpush-3.2.0 spec/unit/client/active_record/notification_spec.rb
rpush-3.1.1 spec/unit/client/active_record/notification_spec.rb
rpush-3.1.0 spec/unit/client/active_record/notification_spec.rb
rpush-3.0.2 spec/unit/client/active_record/notification_spec.rb
rpush-3.0.1 spec/unit/client/active_record/notification_spec.rb
rpush-3.0.0 spec/unit/client/active_record/notification_spec.rb
rpush-3.0.0.rc1 spec/unit/client/active_record/notification_spec.rb
rpush-2.7.0-java spec/unit/client/active_record/notification_spec.rb