Sha256: 13e5993ba36a381cfaaa29c59ab22d59c2f894a02a766b8ba08693a65f0fcd78

Contents?: true

Size: 960 Bytes

Versions: 1

Compression:

Stored size: 960 Bytes

Contents

# -*- encoding: utf-8 -*-
require 'spec_helper'

describe KewegoParty::Client::ChannelList do

  before do
    @client = KewegoParty::Client.new(:token => 'd4c804fd0f42533351aca404313d26eb')

    @lsig = "327982b09c3l"
  end

  describe ".get_channels" do
    use_vcr_cassette "channel_list_get_channels"

    it "should return the cannels" do
      @client.app_get_token # Get and save the app_token
      channels = @client.channel_list_get_channels(@lsig)

      channels.total_result.should == "7"
      channels.channel.should have(7).items
    end
  end

  describe ".get_details" do
    use_vcr_cassette "channel_list_get_details"

    it "should return a token" do
      @client.app_get_token # Get and save the app_token
      details = @client.channel_list_get_details(@lsig)

      details.title.should == "Todos los canales"
      details.description.should == "Todos los canales de CharHadasTv"
      details.lsig.should == @lsig
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kewego_party-0.0.1 spec/kewego_party/client/channel_list_spec.rb