Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (22 sloc) 637 Bytes
require 'spec_helper'
describe VividSeats::Performer do
context ".all" do
it "returns an array of performers" do
use_cached_requests(:performers) do
subject.all.should have(25_114).performers
end
end
it "returns an array of performers for the given category" do
use_cached_requests(:performers) do
subject.all(:categoryId => 74).should have(1_597).performers
end
end
end
context ".find" do
it "returns the performer with the given ID" do
use_cached_requests(:performers) do
subject.find(7145)['name'].should == 'Billy Elliot'
end
end
end
end