Sha256: 0f0e016f6b1b06410552207751d9e8d45f8b1a3539bb41b8a8ea138e9c5066df

Contents?: true

Size: 685 Bytes

Versions: 1

Compression:

Stored size: 685 Bytes

Contents

require 'spec_helper'
require 'hooloo/show'

describe Hooloo::Show do
  describe 'Popular Today' do
    let(:shows) { Hooloo::Show.popular_today }
    it 'should retrieve popular_today' do
      shows.count.must_equal 10
    end
  end
  describe 'Loading' do
    let(:show) { Hooloo::Show.new 11876 }
    it 'should convert company to a Company object' do
      show.company.must_be_instance_of Hooloo::Company
    end
    it 'should convert rollups to Rollup objects' do
      show.rollups.each { |x| x.must_be_instance_of Hooloo::Rollup }
    end
    it 'should convert videos to Video objects' do
      show.videos.each { |x| x.must_be_instance_of Hooloo::Video }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hooloo-0.3.0 spec/hooloo/show_spec.rb