Sha256: 6ee1ecfd020759f230d9621a49fe1fc90ecc6a3e8b291480d0d29941968e7eac

Contents?: true

Size: 735 Bytes

Versions: 6

Compression:

Stored size: 735 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
require File.dirname(__FILE__) + '/../lib/gdata_jruby_client'
require File.dirname(__FILE__) + '/google_keys.rb'

describe GData::CalendarService do
  
  it "should able to assign credentials attributes" do
    credentials = GData::GoogleOAuthParameters.new
    credentials.attributes = {
      :consumer_key => CONSUMER_KEY,
      :consumer_secret => CONSUMER_SECRET,
      :token => TOKEN,
      :token_secret => TOKEN_SECRET }
    credentials.oauth_consumer_key.should == CONSUMER_KEY
    credentials.oauth_consumer_secret.should == CONSUMER_SECRET
    credentials.oauth_token.should == TOKEN
    credentials.oauth_token_secret.should == TOKEN_SECRET
  end
  
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gdata-jruby-client-0.7.5 spec/google_oauth_parameters_spec.rb
gdata-jruby-client-0.7.4 spec/google_oauth_parameters_spec.rb
gdata-jruby-client-0.7.3 spec/google_oauth_parameters_spec.rb
gdata-jruby-client-0.7.2 spec/google_oauth_parameters_spec.rb
gdata-jruby-client-0.7.1 spec/google_oauth_parameters_spec.rb
gdata-jruby-client-0.7.0 spec/google_oauth_parameters_spec.rb