Sha256: e0db4df9354c38de3784c2d615d12c61e75294bad02cc1a283aeafb96c2d7a4c
Contents?: true
Size: 831 Bytes
Versions: 2
Compression:
Stored size: 831 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe OmniAuth::Strategies::ChefOAuth2 do subject do OmniAuth::Strategies::ChefOAuth2.new(nil, @options || {}).tap do |strategy| allow(strategy).to receive(:request) { @request } end end it 'should camelize properly' do expect(OmniAuth::Utils.camelize('chef_oauth2')).to eq('ChefOAuth2') end it 'should have the correct default site' do expect(subject.options.client_options.site).to eq("https://id.chef.io") end it 'should have the correct default authorize url' do expect(subject.options.client_options.authorize_url).to eq('/id/oauth/authorize') end it 'should have the correct default token url' do expect(subject.options.client_options.token_url).to eq('/id/oauth/token') end it_should_behave_like 'an oauth2 strategy' end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
omniauth-chef-oauth2-1.1.0 | spec/omniauth/strategies/chef_oauth2_spec.rb |
omniauth-chef-oauth2-1.0.3 | spec/omniauth/strategies/chef_oauth2_spec.rb |