spec/lib/rspotify/album_spec.rb in rspotify-1.25.0 vs spec/lib/rspotify/album_spec.rb in rspotify-1.25.1
- old
+ new
@@ -90,13 +90,11 @@
# Keys generated specifically for the tests. Should be removed in the future
let(:client_id) { '5ac1cda2ad354aeaa1ad2693d33bb98c' }
let(:client_secret) { '155fc038a85840679b55a1822ef36b9b' }
before(:each) do
- VCR.use_cassette('authenticate:client') do
- RSpotify.authenticate(client_id, client_secret)
- end
+ authenticate_client
end
it 'should find the appropriate new releases' do
albums = VCR.use_cassette('album:new_releases') do
RSpotify::Album.new_releases
@@ -124,12 +122,10 @@
# Keys generated specifically for the tests. Should be removed in the future
let(:client_id) { '5ac1cda2ad354aeaa1ad2693d33bb98c' }
let(:client_secret) { '155fc038a85840679b55a1822ef36b9b' }
before(:each) do
- VCR.use_cassette('authenticate:client') do
- RSpotify.authenticate(client_id, client_secret)
- end
+ authenticate_client
end
it 'should search for the right albums' do
albums = VCR.use_cassette('album:search:AM') do
RSpotify::Album.search('AM')