Sha256: 505ef2f470940122c2588084e54bd3335c0fc7c69c0b5e8ced2ec349c818a019
Contents?: true
Size: 387 Bytes
Versions: 4
Compression:
Stored size: 387 Bytes
Contents
shared_examples 'a base Youku API V2 requests' do it { expect(subject).to be_a Youku::V2::Request } it { expect(subject.ok?).to be_truthy } context '400 response code on request' do before do stub_request(:get, url).with(query: query).to_return(status: 404) end it { expect { subject }.to_not raise_error } it { expect(subject.ok?).to be_falsy } end end
Version data entries
4 entries across 4 versions & 1 rubygems