Sha256: 0e7671fe3400e867699556fd9660f16f4342e72baec6717381e790f7fa30c13e
Contents?: true
Size: 771 Bytes
Versions: 3
Compression:
Stored size: 771 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/test_helper.rb') class TestAccessToken < Test::Unit::TestCase def setup @fake_response = { :user_id => 5734758743895, :oauth_token => "key", :oauth_token_secret => "secret" } # setup a fake req. token. mocking Consumer would be more appropriate... @access_token = OAuth::AccessToken.from_hash( OAuth::Consumer.new("key", "secret", {}), @fake_response ) end def test_provides_response_parameters assert @access_token assert_respond_to @access_token, :params end def test_access_token_makes_non_oauth_response_params_available assert_not_nil @access_token.params[:user_id] assert_equal 5734758743895, @access_token.params[:user_id] end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
qoobaa-oauth-0.3.8 | test/test_access_token.rb |
drogus-oauth-0.3.7 | test/test_access_token.rb |
drogus-oauth-0.3.6 | test/test_access_token.rb |