Sha256: 05d3e8ae9ea0dad1d19d60c2cada0f16c2113fd371fa3a8d01e5f0ff6918689f

Contents?: true

Size: 374 Bytes

Versions: 28

Compression:

Stored size: 374 Bytes

Contents

require 'unit_spec_helper'

describe Rpush::Client::ActiveRecord::Apns::Feedback do
  it 'validates the format of the device_token' do
    notification = Rpush::Client::ActiveRecord::Apns::Feedback.new(device_token: "{$%^&*()}")
    expect(notification.valid?).to be_falsey
    expect(notification.errors[:device_token]).to include('is invalid')
  end
end if active_record?

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
rpush-5.0.0 spec/unit/client/active_record/apns/feedback_spec.rb
rpush-4.2.0 spec/unit/client/active_record/apns/feedback_spec.rb
rpush-4.1.1 spec/unit/client/active_record/apns/feedback_spec.rb
rpush-4.1.0 spec/unit/client/active_record/apns/feedback_spec.rb
rpush-4.0.1 spec/unit/client/active_record/apns/feedback_spec.rb
rpush-4.0.0 spec/unit/client/active_record/apns/feedback_spec.rb
rpush-3.3.1 spec/unit/client/active_record/apns/feedback_spec.rb
rpush-3.3.0 spec/unit/client/active_record/apns/feedback_spec.rb
rpush_extended-3.2.6 spec/unit/client/active_record/apns/feedback_spec.rb
rpush_extended-3.2.5 spec/unit/client/active_record/apns/feedback_spec.rb
rpush-3.2.4 spec/unit/client/active_record/apns/feedback_spec.rb
rpush-3.2.3 spec/unit/client/active_record/apns/feedback_spec.rb
rpush-3.2.2 spec/unit/client/active_record/apns/feedback_spec.rb
rpush-3.2.1 spec/unit/client/active_record/apns/feedback_spec.rb
rpush-3.2.0 spec/unit/client/active_record/apns/feedback_spec.rb
rpush-3.1.1 spec/unit/client/active_record/apns/feedback_spec.rb
rpush-3.1.0 spec/unit/client/active_record/apns/feedback_spec.rb
rpush-3.0.2 spec/unit/client/active_record/apns/feedback_spec.rb
rpush-3.0.1 spec/unit/client/active_record/apns/feedback_spec.rb
rpush-3.0.0 spec/unit/client/active_record/apns/feedback_spec.rb