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-3.0.0.rc1 spec/unit/client/active_record/apns/feedback_spec.rb
rpush-2.7.0-java spec/unit/client/active_record/apns/feedback_spec.rb
rpush-2.7.0 spec/unit/client/active_record/apns/feedback_spec.rb
rpush-2.6.0-java spec/unit/client/active_record/apns/feedback_spec.rb
rpush-2.6.0 spec/unit/client/active_record/apns/feedback_spec.rb
rpush-2.5.0 spec/unit/client/active_record/apns/feedback_spec.rb
rpush-2.4.0-java spec/unit/client/active_record/apns/feedback_spec.rb
rpush-2.4.0 spec/unit/client/active_record/apns/feedback_spec.rb