Sha256: 6061718b3fd2a381551a8a66c6c0de7d1b52d56a0e6e7647ef6528c531ae6216
Contents?: true
Size: 356 Bytes
Versions: 17
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: "{$%^&*()}") notification.valid?.should be_false notification.errors[:device_token].include?("is invalid").should be_true end end
Version data entries
17 entries across 17 versions & 1 rubygems