Sha256: 58b66c45490b9c180d670334a4a1a5c7717ac1f888fb0e9a0e3017c5d9d4274f

Contents?: true

Size: 449 Bytes

Versions: 2

Compression:

Stored size: 449 Bytes

Contents

RSpec.describe Bluekai::Request do
  describe '#sign' do
    it 'computes a correct signature' do
      rq = described_class.new(
        'GET',
        '/Services/WS/classificationCategories/',
        { ho: 'blabli' },
        { key1: 'value1', key2: 'value2' },
        'https://services.bluekai.com')
      rq.api_private_key = '1234'
      expect(rq.send(:signature)).to eq('t%2BE36Yup7ORbC3WRux5xY7ohUxqFo5AGsKrGjJYDCKs%3D')
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bluekai-0.0.4 spec/lib/bluekai/request_spec.rb
bluekai-0.0.3 spec/lib/bluekai/request_spec.rb