Sha256: eea789f613566048eeba1a6c48ced3ab34c49b8e61225fc93bda31d506f9b3d2

Contents?: true

Size: 585 Bytes

Versions: 5

Compression:

Stored size: 585 Bytes

Contents

require 'spotify_to_mp3'

module SpotifyToMp3
  describe Grooveshark do
    context "#get_track" do
      before(:each) do
        @grooveshark = DependencyInjection.new.grooveshark
      end

      it "finds by plain query" do
        @grooveshark.get_track("Cake - I Will Survive").should be
      end

      it "finds by artist and title" do
        @grooveshark.get_track('artist:"Cake" title:"I Will Survive"').should be
      end

      it "fails with nonexistent tracks" do
        expect { @grooveshark.get_track('XXXXXXXXXXXXXXX') }.to raise_error
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spotify-to-mp3-0.5.4 spec/grooveshark_spec.rb
spotify-to-mp3-0.5.3 spec/grooveshark_spec.rb
spotify-to-mp3-0.5.2 spec/grooveshark_spec.rb
spotify-to-mp3-0.5.1 spec/grooveshark_spec.rb
spotify-to-mp3-0.5 spec/grooveshark_spec.rb