Sha256: 83296e6c919fddccb77508eb27928eec172c512201d89ac956c0889fcfac64bc

Contents?: true

Size: 580 Bytes

Versions: 2

Compression:

Stored size: 580 Bytes

Contents

require 'spec_helper'
require 'hooloo/genre'

describe Hooloo::Genre do
  describe 'List All' do
    let(:genres) { Hooloo::Genre.list }
    it 'should convert genre list to Genre objects' do
      genres.each { |x| x.must_be_instance_of Hooloo::Genre }
    end
  end
  describe 'Shows List' do
    let(:genre) { Hooloo::Genre.new 'anime' }
    it 'should return multiple shows' do
      genre.shows.first(50).count.must_be :>, 0
    end
    it 'should convert shows to Show objects' do
      genre.shows.first(5).each { |x| x.must_be_instance_of Hooloo::Show }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hooloo-0.3.2 spec/hooloo/genre_spec.rb
hooloo-0.3.1 spec/hooloo/genre_spec.rb