Sha256: d9352f328f7934f89e3138d9bff01d082b003e37f5a1482371307c0bd2a86ebf

Contents?: true

Size: 562 Bytes

Versions: 4

Compression:

Stored size: 562 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.length.must_be :>, 0
    end
    it 'should convert shows to Show objects' do
      genre.shows.each { |x| x.must_be_instance_of Hooloo::Show }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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