spec/omniauth/strategies/linkedin_oauth2_spec.rb in omniauth-linkedin-oauth2-0.0.3 vs spec/omniauth/strategies/linkedin_oauth2_spec.rb in omniauth-linkedin-oauth2-0.1.0

- old
+ new

@@ -1,13 +1,13 @@ require 'spec_helper' require 'omniauth-linkedin-oauth2' -describe OmniAuth::Strategies::LinkedInOAuth2 do - subject { OmniAuth::Strategies::LinkedInOAuth2.new(nil) } +describe OmniAuth::Strategies::LinkedIn do + subject { OmniAuth::Strategies::LinkedIn.new(nil) } it 'should add a camelization for itself' do - OmniAuth::Utils.camelize('linkedin_oauth2').should == 'LinkedInOAuth2' + OmniAuth::Utils.camelize('linkedin').should == 'LinkedIn' end describe '#client' do it 'has correct LinkedIn site' do subject.client.site.should eq('https://api.linkedin.com') @@ -22,10 +22,10 @@ end end describe '#callback_path' do it 'has the correct callback path' do - subject.callback_path.should eq('/auth/linkedin_oauth2/callback') + subject.callback_path.should eq('/auth/linkedin/callback') end end describe '#uid' do before :each do