Sha256: c2738f5bb53d384d5ca6d4e2100e9763c40f49664f3b34c0b0b600b87187c1fa
Contents?: true
Size: 1.05 KB
Versions: 15
Compression:
Stored size: 1.05 KB
Contents
require 'helper' describe LinkedIn do before(:each) do LinkedIn.token = nil LinkedIn.secret = nil LinkedIn.default_profile_fields = nil end it "should be able to set the consumer token and consumer secret" do LinkedIn.token = 'consumer_token' LinkedIn.secret = 'consumer_secret' LinkedIn.token.should == 'consumer_token' LinkedIn.secret.should == 'consumer_secret' end it "should be able to set the default profile fields" do LinkedIn.default_profile_fields = ['education', 'positions'] LinkedIn.default_profile_fields.should == ['education', 'positions'] end it "should be able to set the consumer token and consumer secret via a configure block" do LinkedIn.configure do |config| config.token = 'consumer_token' config.secret = 'consumer_secret' config.default_profile_fields = ['education', 'positions'] end LinkedIn.token.should == 'consumer_token' LinkedIn.secret.should == 'consumer_secret' LinkedIn.default_profile_fields.should == ['education', 'positions'] end end
Version data entries
15 entries across 15 versions & 4 rubygems