Sha256: 2b5acd05477039f034722ffaa848b43054c5a8283813fbdc2014003198784a67
Contents?: true
Size: 1.1 KB
Versions: 3
Compression:
Stored size: 1.1 KB
Contents
require 'spec_helper' require 'ezlinkedin' describe EzLinkedin do before(:each) do EzLinkedin.token = nil EzLinkedin.secret = nil EzLinkedin.default_profile_fields = nil end it "should be able to set the consumer token and consumer secret" do EzLinkedin.token = 'consumer_token' EzLinkedin.secret = 'consumer_secret' EzLinkedin.token.should == 'consumer_token' EzLinkedin.secret.should == 'consumer_secret' end it "should be able to set the default profile fields" do EzLinkedin.default_profile_fields = ['education', 'positions'] EzLinkedin.default_profile_fields.should == ['education', 'positions'] end it "should be able to set the consumer token and consumer secret via a configure block" do EzLinkedin.configure do |config| config.token = 'consumer_token' config.secret = 'consumer_secret' config.default_profile_fields = ['education', 'positions'] end EzLinkedin.token.should == 'consumer_token' EzLinkedin.secret.should == 'consumer_secret' EzLinkedin.default_profile_fields.should == ['education', 'positions'] end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ezlinkedin-0.1.2 | spec/ezlinkedin_spec.rb |
ezlinkedin-0.1.1 | spec/ezlinkedin_spec.rb |
ezlinkedin-0.0.1 | spec/ezlinkedin_spec.rb |