Sha256: 4d1f9229c227714c0375cda17130b4c60ebb45feda2ca01c00269635ddf7ef5a
Contents?: true
Size: 1.06 KB
Versions: 9
Compression:
Stored size: 1.06 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 = ['educations', 'positions'] LinkedIn.default_profile_fields.should == ['educations', '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 = ['educations', 'positions'] end LinkedIn.token.should == 'consumer_token' LinkedIn.secret.should == 'consumer_secret' LinkedIn.default_profile_fields.should == ['educations', 'positions'] end end
Version data entries
9 entries across 9 versions & 3 rubygems