Sha256: 4759e0527a539d8b2b2975291e0a4b482e2fbde41522183221f2428e6dd019b8

Contents?: true

Size: 321 Bytes

Versions: 2

Compression:

Stored size: 321 Bytes

Contents

require "unit_spec_helper"

describe Rpush::Apns::Feedback do
  it "should validate the format of the device_token" do
    notification = Rpush::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

2 entries across 2 versions & 1 rubygems

Version Path
rpush-1.0.0-java spec/unit/apns/feedback_spec.rb
rpush-1.0.0 spec/unit/apns/feedback_spec.rb