spec/omniauth/strategies/outrightmental_spec.rb in omniauth-outrightmental-0.1.1 vs spec/omniauth/strategies/outrightmental_spec.rb in omniauth-outrightmental-0.1.2

- old
+ new

@@ -4,12 +4,12 @@ let(:access_token) { double('AccessToken', :options => {}) } let(:parsed_response) { double('ParsedResponse') } let(:response) { double('Response', :parsed => parsed_response) } let(:enterprise_site) { 'https://some.other.site.com/api/v3' } - let(:enterprise_authorize_url) { 'https://some.other.site.com/login/oauth/authorize' } - let(:enterprise_token_url) { 'https://some.other.site.com/login/oauth/access_token' } + let(:enterprise_authorize_url) { 'https://some.other.site.com/auth/authorize' } + let(:enterprise_token_url) { 'https://some.other.site.com/auth/access_token' } let(:enterprise) do OmniAuth::Strategies::OutrightMental.new('OUTRIGHTMENTAL_KEY', 'OUTRIGHTMENTAL_SECRET', { :client_options => { :site => enterprise_site, @@ -32,14 +32,14 @@ it 'should have correct site' do subject.options.client_options.site.should eq("https://ont.io/") end it 'should have correct authorize url' do - subject.options.client_options.authorize_url.should eq('https://ont.io/login/oauth/authorize') + subject.options.client_options.authorize_url.should eq('https://ont.io/auth/authorize') end it 'should have correct token url' do - subject.options.client_options.token_url.should eq('https://ont.io/login/oauth/access_token') + subject.options.client_options.token_url.should eq('https://ont.io/auth/access_token') end describe "should be overrideable" do it "for site" do enterprise.options.client_options.site.should eq(enterprise_site)