spec/googleauth/scope_util_spec.rb in googleauth-0.5.1 vs spec/googleauth/scope_util_spec.rb in googleauth-0.5.2
- old
+ new
@@ -37,16 +37,18 @@
shared_examples 'normalizes scopes' do
let(:normalized) { Google::Auth::ScopeUtil.normalize(source) }
it 'normalizes the email scope' do
expect(normalized).to include(
- 'https://www.googleapis.com/auth/userinfo.email')
+ 'https://www.googleapis.com/auth/userinfo.email'
+ )
expect(normalized).to_not include 'email'
end
it 'normalizes the profile scope' do
expect(normalized).to include(
- 'https://www.googleapis.com/auth/userinfo.profile')
+ 'https://www.googleapis.com/auth/userinfo.profile'
+ )
expect(normalized).to_not include 'profile'
end
it 'normalizes the openid scope' do
expect(normalized).to include 'https://www.googleapis.com/auth/plus.me'