spec/lib/rspotify/album_spec.rb in rspotify-1.9.0 vs spec/lib/rspotify/album_spec.rb in rspotify-1.9.1
- old
+ new
@@ -10,12 +10,13 @@
end
it 'should find album with correct attributes' do
expect(@album.album_type) .to eq 'album'
expect(@album.available_markets) .to include *%w(AD AT BE BG CA EE ES FR GR MC TW US)
+ expect(@album.copyrights) .to include ({'text' => '2013 Domino Recording Co Ltd', 'type' => 'C'})
expect(@album.external_ids['upc']) .to eq '887828031795'
expect(@album.external_urls['spotify']) .to eq 'https://open.spotify.com/album/5bU1XKYxHhEwukllT20xtk'
- expect(@album.genres) .to include 'Indie'
+ expect(@album.genres) .to be_an Array
expect(@album.href) .to eq 'https://api.spotify.com/v1/albums/5bU1XKYxHhEwukllT20xtk'
expect(@album.id) .to eq '5bU1XKYxHhEwukllT20xtk'
expect(@album.images) .to include ({'height' => 640, 'width' => 640, 'url' => 'https://i.scdn.co/image/4d9ec146e3a257b10634d9a413ef6cc3de325008'})
expect(@album.name) .to eq 'AM'
expect(@album.popularity) .to be > 0