Sha256: a9ee5d543e106ed402605d386a67c3976f3fbcea82ad2a480df051ef8a14bbd5

Contents?: true

Size: 738 Bytes

Versions: 1

Compression:

Stored size: 738 Bytes

Contents

require 'spec_helper'

module Beatport::Catalog
  describe Mixed do
    describe '.all' do
      before(:all) do
        @results = 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
        @results.map(&:type).should == ['label', 'label', 'artist', 'artist', 'chart', 'chart', 'release', 'release', 'track', 'track']
      end

      it "should return the right ids" do
        @results.map(&:id).should == [804, 1390, 7181, 10395, 15722, 29514, 164808, 385763, 1746687, 1873426]
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
beatport-0.1.1 spec/catalog/mixed_spec.rb