Sha256: 4d5400f3fa54dd1efb48c8e18ba98cd8b4dd2a3f88fc65bfa5a0a25796fdd664
Contents?: true
Size: 822 Bytes
Versions: 1
Compression:
Stored size: 822 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe OmniAuth::Strategies::ChefOAuth2 do subject do OmniAuth::Strategies::ChefOAuth2.new(nil, @options || {}).tap do |strategy| strategy.stub(: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.opscode.com") 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-chef-oauth2-1.0.2 | spec/omniauth/strategies/chef_oauth2_spec.rb |