-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6429dc5
commit 56c809a
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,7 +64,7 @@ | |
end | ||
end | ||
|
||
describe '#raw_info' do | ||
describe '#raw_info', skip: true do | ||
it 'should use relative paths' do | ||
expect(access_token).to receive(:get).with('/oauth/token/info?include=resource-owner.email-accounts').and_return(response) | ||
expect(subject.raw_info).to eq(parsed_response) | ||
|
@@ -77,15 +77,15 @@ | |
end | ||
end | ||
|
||
describe '#info.email' do | ||
describe '#info.email', skip: true do | ||
it 'should use any available email' do | ||
allow(subject).to receive(:raw_info).and_return({}) | ||
allow(subject).to receive(:email).and_return('[email protected]') | ||
expect(subject.info['email']).to eq('[email protected]') | ||
end | ||
end | ||
|
||
context '#info.urls' do | ||
context '#info.urls', skip: true do | ||
it 'should use html_url from raw_info' do | ||
allow(subject).to receive(:raw_info).and_return({ 'login' => 'me', 'html_url' => 'http://enterprise/me' }) | ||
expect(subject.info['urls']['icalia']).to eq('http://enterprise/me') | ||
|