spec/omniauth/strategies/outrightmental_spec.rb in omniauth-outrightmental-0.1.4 vs spec/omniauth/strategies/outrightmental_spec.rb in omniauth-outrightmental-0.1.5
- old
+ new
@@ -5,11 +5,11 @@
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/auth/authorize' }
- let(:enterprise_token_url) { 'https://some.other.site.com/auth/access_token' }
+ let(:enterprise_token_url) { 'https://some.other.site.com/auth/token' }
let(:enterprise) do
OmniAuth::Strategies::OutrightMental.new('OUTRIGHTMENTAL_KEY', 'OUTRIGHTMENTAL_SECRET',
{
:client_options => {
:site => enterprise_site,
@@ -36,10 +36,10 @@
it 'should have correct authorize url' do
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/#/auth/access_token')
+ subject.options.client_options.token_url.should eq('https://ont.io/#/auth/token')
end
describe "should be overrideable" do
it "for site" do
enterprise.options.client_options.site.should eq(enterprise_site)