spec/omniauth/strategies/chef_oauth2_spec.rb in omniauth-chef-oauth2-1.0.2 vs spec/omniauth/strategies/chef_oauth2_spec.rb in omniauth-chef-oauth2-1.0.3
- old
+ new
@@ -3,19 +3,19 @@
describe OmniAuth::Strategies::ChefOAuth2 do
subject do
OmniAuth::Strategies::ChefOAuth2.new(nil, @options || {}).tap do |strategy|
- strategy.stub(:request) { @request }
+ 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.opscode.com")
+ 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