Sha256: 80c697d98c1c9845c6cfa0a6f8fe256d93dc243984dec41d2c9c644ea35bacdb
Contents?: true
Size: 470 Bytes
Versions: 2
Compression:
Stored size: 470 Bytes
Contents
require "unit_spec_helper" describe Rpush::TooManyRequestsError do let(:response) { double(:code => 429, :header => { 'retry-after' => 3600 }) } let(:error) { Rpush::TooManyRequestsError.new(429, 12, "Too Many Requests", response) } it "returns an informative message" do error.to_s.should eq "Too many requests for 12, received error 429 (Too Many Requests) - retry after 3600" end it "returns the error code" do error.code.should eq 429 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rpush-1.0.0-java | spec/unit/daemon/too_many_requests_error_spec.rb |
rpush-1.0.0 | spec/unit/daemon/too_many_requests_error_spec.rb |