Sha256: 38b85b75ad393a5d7ee4a4166fda1e4aa44d839e9891906e50bc0a50337e9a09
Contents?: true
Size: 483 Bytes
Versions: 2
Compression:
Stored size: 483 Bytes
Contents
require File.expand_path("./helper", File.dirname(__FILE__)) describe 'Request' do module Grooveshark module Request TOKEN_TTL = 1 # override default ttl for tests end end it 'should obtain a new communication token on TTL expiration' do @gs = Grooveshark::Client.new @tokens = [] 3.times do |i| @gs.search_songs('Muse') @tokens << @gs.comm_token sleep 3 end @tokens.uniq! @tokens.size.should == 3 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
grooveshark-0.2.3 | spec/request_spec.rb |
grooveshark-0.2.2 | spec/request_spec.rb |