Sha256: da486ca6b275447337e6b1616e6e1a055f8110ec946d300e31610ee7648259ba
Contents?: true
Size: 843 Bytes
Versions: 6
Compression:
Stored size: 843 Bytes
Contents
require 'spec_helper' module Beatport::Catalog describe Mixed do before :each do VCR.insert_cassette 'mixed' end after :each do VCR.eject_cassette end describe '.all' do subject do Mixed.all( :label_ids => [804, 1390], :artist_ids => [7181, 10395], :chart_ids => [15722, 29514], :release_ids => [164808, 385763], :track_ids => [1873426, 1746687] ) end it "should return two of each type" do subject.map(&:type).should == ['label', 'label', 'artist', 'artist', 'chart', 'chart', 'release', 'release', 'track', 'track'] end it "should return the right ids" do subject.map(&:id).sort.should == [804, 1390, 7181, 10395, 15722, 29514, 164808, 385763, 1746687, 1873426] end end end end
Version data entries
6 entries across 6 versions & 1 rubygems