Sha256: ed6608abbcc1501181523ab18a3006a967c42a094457fd85f9de1cbedb8865f9

Contents?: true

Size: 607 Bytes

Versions: 1

Compression:

Stored size: 607 Bytes

Contents

require 'spec_helper'

describe Youku::V2::Users do

  let(:client) { Youku::Client.new(client_id: 'client-id') }
  let(:users)  { Youku::V2::Users.new(client) }

  describe '#show_batch' do
    let(:url)   { 'https://openapi.youku.com/v2/users/show_batch.json' }
    let(:query) { {
      client_id: client.client_id,
      user_ids:  nil,
      user_names: 'jackie_chan',
    } }

    before do
      stub_request(:get, url).with(query: query).to_return(status: 200)
    end

    subject { users.show_batch(user_names: 'jackie_chan') }

    it_should_behave_like 'a base Youku API V2 requests'
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
youku_client-0.0.1 spec/youku/v2/users_spec.rb