Sha256: 5766434836f3f0c57e29744c53a12c9ba6398a037f9d11ea7e8cf7cf2a76f73e

Contents?: true

Size: 346 Bytes

Versions: 19

Compression:

Stored size: 346 Bytes

Contents

require "unit_spec_helper"

describe Rpush::DeliveryError do
  let(:error) { Rpush::DeliveryError.new(4, 12, "Missing payload") }

  it "returns an informative message" do
    error.to_s.should eq "Unable to deliver notification 12, received error 4 (Missing payload)"
  end

  it "returns the error code" do
    error.code.should eq 4
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rpush-2.3.1-java spec/unit/daemon/delivery_error_spec.rb
rpush-2.3.1 spec/unit/daemon/delivery_error_spec.rb
rpush-2.3.0-java spec/unit/daemon/delivery_error_spec.rb
rpush-2.3.0 spec/unit/daemon/delivery_error_spec.rb
rpush-2.3.0.rc1 spec/unit/daemon/delivery_error_spec.rb
rpush-2.2.0-java spec/unit/daemon/delivery_error_spec.rb
rpush-2.2.0 spec/unit/daemon/delivery_error_spec.rb
rpush-2.1.0-java spec/unit/daemon/delivery_error_spec.rb
rpush-2.1.0 spec/unit/daemon/delivery_error_spec.rb
rpush-2.0.1-java spec/unit/daemon/delivery_error_spec.rb
rpush-2.0.1 spec/unit/daemon/delivery_error_spec.rb
rpush-2.0.0-java spec/unit/daemon/delivery_error_spec.rb
rpush-2.0.0 spec/unit/daemon/delivery_error_spec.rb
rpush-2.0.0.rc1-java spec/unit/daemon/delivery_error_spec.rb
rpush-2.0.0.rc1 spec/unit/daemon/delivery_error_spec.rb
rpush-2.0.0.beta2 spec/unit/daemon/delivery_error_spec.rb
rpush-2.0.0.beta1 spec/unit/daemon/delivery_error_spec.rb
rpush-1.0.0-java spec/unit/daemon/delivery_error_spec.rb
rpush-1.0.0 spec/unit/daemon/delivery_error_spec.rb