Sha256: 53f3735e531b58567c33d48674d797029c57698de684c1889e64716353697049
Contents?: true
Size: 677 Bytes
Versions: 1
Compression:
Stored size: 677 Bytes
Contents
require 'spec_helper' describe Youku::V2::Schemas do let(:client) { Youku::Client.new(client_id: 'client-id') } describe '#video' do subject { client.schemas.video } it { expect(subject).to be_a Youku::V2::Schemas::Video } it { expect(subject.client).to eq client } end describe '::Video' do describe '#category' do let(:url) { 'https://openapi.youku.com/v2/schemas/video/category.json' } let(:query) { {} } before do stub_request(:get, url).with(query: query).to_return(status: 200) end subject { client.schemas.video.category } it_should_behave_like 'a base Youku API V2 requests' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
youku_client-0.0.4 | spec/youku/v2/schemas_spec.rb |