Sha256: 7a054c3f507eb40f1b741a53df54f72074af66e04fbb4f2f39778970eab19e30

Contents?: true

Size: 356 Bytes

Versions: 2

Compression:

Stored size: 356 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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rpush-2.3.2-java spec/unit/client/active_record/apns/feedback_spec.rb
rpush-2.3.2 spec/unit/client/active_record/apns/feedback_spec.rb