require 'spec_helper'

describe 'Yt::Playlist’s content details methods', :server do
  subject(:playlist) { Yt::Playlist.new attrs }

  context 'given an existing playlist ID' do
    let(:attrs) { {id: $existing_playlist_id} }

    specify 'return all content details data with one HTTP call' do
      expect(Net::HTTP).to receive(:start).once.and_call_original

      expect(playlist.item_count).to be 3
    end
  end
end

require 'spec_helper'

describe 'Yt::Playlist’s content details methods', :server do
  subject(:playlist) { Yt::Playlist.new attrs }

  context 'given an existing playlist ID' do
    let(:attrs) { {id: $existing_playlist_id} }

    specify 'return all content details data with one HTTP call' do
      expect(Net::HTTP).to receive(:start).once.and_call_original

      expect(playlist.item_count).to be 52
    end
  end
end

Fix tests: items in test playlist have changed
Fix tests: items in test playlist have changed
