Sha256: 138e3b159ebbea78f2c9c7d73874dedf6084086c12afba61b483528ac99740fe

Contents?: true

Size: 686 Bytes

Versions: 4

Compression:

Stored size: 686 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.length.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

4 entries across 4 versions & 1 rubygems

Version Path
hooloo-0.2.1 spec/hooloo/show_spec.rb
hooloo-0.2.0 spec/hooloo/show_spec.rb
hooloo-0.1.1 spec/hooloo/show_spec.rb
hooloo-0.1.0 spec/hooloo/show_spec.rb