Sha256: e221fe22584c5ce7794f867e50e0b1baa789ef3fb3c306f8eb83eaa012b082d0

Contents?: true

Size: 648 Bytes

Versions: 9

Compression:

Stored size: 648 Bytes

Contents

require 'spec_helper'

describe Pushpad do
  describe "#auth_token=" do
    it "sets the Pushpad auth token globally" do
      Pushpad.auth_token = 'abc123'
      expect(Pushpad.auth_token).to eq 'abc123'
    end
  end

  describe "#project_id=" do
    it "sets the Pushpad project id globally" do
      Pushpad.project_id = 123
      expect(Pushpad.project_id).to eq 123
    end
  end

  describe "#signature_for" do
    it "produces the hex-encoded HMAC-SHA1 signature for the data passed as argument" do
      signature = Pushpad.signature_for('myuid1')
      expect(signature).to eq '27fbe136f5a4aa0b6be74c0e18fa8ce81ad91b60'
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pushpad-0.13.0 spec/pushpad_spec.rb
pushpad-0.12.0 spec/pushpad_spec.rb
pushpad-0.11.1 spec/pushpad_spec.rb
pushpad-0.11.0 spec/pushpad_spec.rb
pushpad-0.10.0 spec/pushpad_spec.rb
pushpad-0.9.0 spec/pushpad_spec.rb
pushpad-0.8.0 spec/pushpad_spec.rb
pushpad-0.7.0 spec/pushpad_spec.rb
pushpad-0.6.0 spec/pushpad_spec.rb