spec/lib/rspotify/track_spec.rb in rspotify-1.11.0 vs spec/lib/rspotify/track_spec.rb in rspotify-1.12.0

- old
+ new

@@ -68,11 +68,11 @@ tracks = VCR.use_cassette('track:search:Wanna Know') do RSpotify::Track.search('Wanna Know') end expect(tracks) .to be_an Array expect(tracks.size) .to eq 20 - expect(tracks.total) .to eq 3565 + expect(tracks.total) .to eq 3647 expect(tracks.first) .to be_an RSpotify::Track expect(tracks.map(&:name)) .to include('Do I Wanna Know?', 'I Wanna Know', 'Never Wanna Know') end it 'should accept additional options' do @@ -84,16 +84,16 @@ tracks = VCR.use_cassette('track:search:Wanna Know:offset:10') do RSpotify::Track.search('Wanna Know', offset: 10) end expect(tracks.size) .to eq 20 - expect(tracks.map(&:name)) .to include('They Wanna Know', 'Say I Wanna Know') + expect(tracks.map(&:name)) .to include('They Wanna Know', 'You Wanna Know') tracks = VCR.use_cassette('track:search:Wanna Know:limit:10:offset:10') do RSpotify::Track.search('Wanna Know', limit: 10, offset: 10) end expect(tracks.size) .to eq 10 - expect(tracks.map(&:name)) .to include('They Wanna Know') + expect(tracks.map(&:name)) .to include('You Wanna Know') tracks = VCR.use_cassette('track:search:Wanna Know:market:ES') do RSpotify::Track.search('Wanna Know', market: 'ES') end ES_tracks = tracks.select { |t| t.available_markets.include?('ES') }