Sha256: a0cfeef5e06143d624e08c3690157678bdb66108393841eb3e2ac0b6297e0525
Contents?: true
Size: 753 Bytes
Versions: 3
Compression:
Stored size: 753 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 { subject.must_be_instance_of(String) } 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
troo-0.0.15 | test/lib/troo/api/headers_test.rb |
troo-0.0.14 | test/lib/troo/api/headers_test.rb |
troo-0.0.13 | test/lib/troo/api/headers_test.rb |