Sha256: 91bce9dfb431e9af3c14dfb241f957b6d7b65b12f2d52aafbb6dace886fc24f1
Contents?: true
Size: 720 Bytes
Versions: 3
Compression:
Stored size: 720 Bytes
Contents
require 'spec_helper' module Beatport::Catalog describe Mixed do 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).should == [804, 1390, 7181, 10395, 15722, 29514, 164808, 385763, 1746687, 1873426] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
beatport-0.1.5 | spec/catalog/mixed_spec.rb |
beatport-0.1.3 | spec/catalog/mixed_spec.rb |
beatport-0.1.2 | spec/catalog/mixed_spec.rb |