Sha256: 3dc6cf9a3f54f57f3aa9b97c99abd912fd5bd2f0f07e78f9d056af26c8d1b92d

Contents?: true

Size: 606 Bytes

Versions: 5

Compression:

Stored size: 606 Bytes

Contents

require 'spotify_to_mp3/dependency_container'

module SpotifyToMp3
  describe Grooveshark do
    context "#get_track" do
      before(:each) do
        @grooveshark = DependencyContainer.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.7.2 spec/grooveshark_spec.rb
spotify-to-mp3-0.7.1 spec/grooveshark_spec.rb
spotify-to-mp3-0.7.0 spec/grooveshark_spec.rb
spotify-to-mp3-0.6.1 spec/grooveshark_spec.rb
spotify-to-mp3-0.6.0 spec/grooveshark_spec.rb