Sha256: 2755348a8f653267dd2294c66005930a14383d73af993a4f41cc2973dc2bb456
Contents?: true
Size: 695 Bytes
Versions: 2
Compression:
Stored size: 695 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.first(10).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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hooloo-0.3.2 | spec/hooloo/show_spec.rb |
hooloo-0.3.1 | spec/hooloo/show_spec.rb |