spec/lib/bluekai/client_spec.rb in bluekai-0.0.2 vs spec/lib/bluekai/client_spec.rb in bluekai-0.0.3
- old
+ new
@@ -1,16 +1,9 @@
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)
+ expect { subject.send(:request, 'FOO', '123', {}, nil) }.to raise_error(NoMethodError)
end
end
end