Sha256: 27e1fbf02aedf57d6cc38567562cf1e7736732f66509e984eda35be448e8ac12
Contents?: true
Size: 701 Bytes
Versions: 4
Compression:
Stored size: 701 Bytes
Contents
require_relative '../../../test_helper' module Troo module API describe Headers do let(:described_class) { Headers } let(:uri) { 'http://www.example.com/' } let(:headers) { {} } describe '#build!' do subject do described_class.build!(uri, headers)['Authorization'] end it 'returns the built headers' do subject.must_match(/consumer_key/) subject.must_match(/nonce/) subject.must_match(/signature/) subject.must_match(/HMAC-SHA1/) subject.must_match(/timestamp/) subject.must_match(/token/) subject.must_match(/version/) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
troo-0.0.12 | test/lib/troo/api/headers_test.rb |
troo-0.0.11 | test/lib/troo/api/headers_test.rb |
troo-0.0.10 | test/lib/troo/api/headers_test.rb |
troo-0.0.9 | test/lib/troo/api/headers_test.rb |