Sha256: ace917e84347cb908cf9a0890975233121600921825c674c5122d2c14f027144

Contents?: true

Size: 597 Bytes

Versions: 4

Compression:

Stored size: 597 Bytes

Contents

require File.expand_path("./helper", File.dirname(__FILE__))

describe 'Request' do
  module Grooveshark
    module Request
      # Override default ttl for tests
      remove_const :TOKEN_TTL # Avoid the "already initialized constant" warning
      TOKEN_TTL = 1
    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

4 entries across 4 versions & 1 rubygems

Version Path
grooveshark-0.2.7 spec/request_spec.rb
grooveshark-0.2.6 spec/request_spec.rb
grooveshark-0.2.5 spec/request_spec.rb
grooveshark-0.2.4 spec/request_spec.rb