Sha256: 1e8bac62b414720bf7ba88fb70b65a97b3fce1bb0c191ea9dca60a8a36970216
Contents?: true
Size: 1.38 KB
Versions: 3
Compression:
Stored size: 1.38 KB
Contents
require 'spotify_to_mp3/dependency_container' module SpotifyToMp3 describe QueryResolver do before(:each) do @resolver = DependencyContainer.new.query_resolver end it "resolves Spotify track HTTP URLs" do tracks = @resolver.resolve('http://open.spotify.com/track/0qgiFuYhYuwtFXEwYakddE') tracks.length.should == 1 tracks.first.to_s.should == "Cake - I Will Survive" end it "resolves Spotify track URIs" do tracks = @resolver.resolve('spotify:track:0qgiFuYhYuwtFXEwYakddE') tracks.length.should == 1 tracks.first.to_s.should == "Cake - I Will Survive" end it "resolves Spotify album HTTP URLs" do tracks = @resolver.resolve('http://open.spotify.com/album/7wq5vhqramVPzjArlmr70k') tracks.length.should == 2 tracks[0].to_s.should == "Arctic Monkeys - Suck It and See" tracks[1].to_s.should == "Arctic Monkeys - Evil Twin" end it "resolves Spotify album URIs" do tracks = @resolver.resolve('spotify:album:7wq5vhqramVPzjArlmr70k') tracks.length.should == 2 tracks[0].to_s.should == "Arctic Monkeys - Suck It and See" tracks[1].to_s.should == "Arctic Monkeys - Evil Twin" end it "resolves track titles" do tracks = @resolver.resolve('Cake - I Will Survive') tracks.length.should == 1 tracks.first.to_s.should == "Cake - I Will Survive" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spotify-to-mp3-0.7.2 | spec/query_resolver_spec.rb |
spotify-to-mp3-0.7.1 | spec/query_resolver_spec.rb |
spotify-to-mp3-0.7.0 | spec/query_resolver_spec.rb |