Sha256: a3e34a4e38e7825afee7e0e92049c0db9fd5188455f2d9b3e7a53c75a0a69b26
Contents?: true
Size: 1.02 KB
Versions: 3
Compression:
Stored size: 1.02 KB
Contents
require 'spec' $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'soundcloud' Spec::Runner.configure do |config| end def soundcloud_site 'http://api.sandbox-soundcloud.com' end def soundcloud_settings return { :access_token => 'your_access_token_here', :access_secret => 'your_access_secret_here', :consumer_token => 'your_consumer_token_here', :consumer_secret => 'your_consumer_secret_here', :bad_consumer_token => '98ydfg', :bad_consumer_secret => 'Sp9p1FTU0hhLBNXY' } end def valid_oauth_access_token access_token = soundcloud_settings[:access_token] access_secret = soundcloud_settings[:access_secret] consumer_token = soundcloud_settings[:consumer_token] consumer_secret = soundcloud_settings[:consumer_secret] sc_consumer = Soundcloud.consumer(consumer_token,consumer_secret,soundcloud_site) return OAuth::AccessToken.new(sc_consumer, access_token, access_secret) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
soundcloud-ruby-api-wrapper-0.4.8 | spec/spec_helper.rb |
soundcloud-ruby-api-wrapper-0.4.7 | spec/spec_helper.rb |
soundcloud-ruby-api-wrapper-0.4.6 | spec/spec_helper.rb |