Sha256: ef6ca0aea9ca07874b3c029333e577951539dbfbb0b5ecb21645141002c92c1c

Contents?: true

Size: 458 Bytes

Versions: 9

Compression:

Stored size: 458 Bytes

Contents

require 'spec_helper'

module ApnServer
  describe Client do
    describe "#new" do
      let(:client) { ApnServer::Client.new('cert.pem', 'gateway.sandbox.push.apple.com', 2196) }

      it "sets the pem path" do
        client.pem.should == 'cert.pem'
      end

      it "sets the host" do
        client.host.should == 'gateway.sandbox.push.apple.com'
      end

      it "sets the port" do
        client.port.should == 2196
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
apnserver-0.2.2 spec/models/client_spec.rb
racoon-1.0.1 spec/models/client_spec.rb
racoon-1.0.0 spec/models/client_spec.rb
racoon-0.6.0 spec/models/client_spec.rb
racoon-0.5.0 spec/models/client_spec.rb
racoon-0.4.0 spec/models/client_spec.rb
racoon-0.3.2 spec/models/client_spec.rb
racoon-0.3.1 spec/models/client_spec.rb
apnserver-0.2.1 spec/models/client_spec.rb