Sha256: cae332d00cffc2064742a5ab4ff0cf76fe47a999d41ceeef895e5cff7378160b
Contents?: true
Size: 583 Bytes
Versions: 1
Compression:
Stored size: 583 Bytes
Contents
RSpec.describe Bluekai::Client do subject { described_class.new(api_private_key: '1234') } describe '#sign' do it 'computes a correct signature' do signature = subject.send(:sign, 'GET', '/Services/WS/classificationCategories/', 'blabli', key1: 'value1', key2: 'value2') expect(signature).to eq('msNdVnof8pNLImtDYxh0KDiMHWqrvjExAEh7UcSLJw8%3D') end end describe '#request' do it 'raises ArgumentError if unknown HTTP method is passed' do expect { subject.send(:request, 'FOO', '123', {}, nil) }.to raise_error(ArgumentError) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bluekai-0.0.2 | spec/lib/bluekai/client_spec.rb |