Skip to content

Commit

Permalink
check for url
Browse files Browse the repository at this point in the history
  • Loading branch information
judearasu committed Jul 8, 2012
1 parent 3092394 commit e2e30ae
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions spec/omniauth/strategies/miso_spec.rb
Expand Up @@ -35,8 +35,7 @@
end
context '#info' do
before :each do
subject.stub(:raw_info) {
{
@raw_info = {
'id' => '123',
'description' => '',
'full_name' => 'Jude Arasu',
Expand All @@ -45,11 +44,9 @@
'name' => '',
'nickname' => '',
'profile_image_url' => 'http://gomiso.com/uploads/BAhbCFsHOgZmIiEyMDEyLzA3LzA3LzA1LzQxLzI5Lzc0OC9maWxlWwc6BmU6CHBuZ1sIOgZwOgp0aHVtYiILODB4ODAj.png',
'urls' => {'Website'=> 'http://judearasu.github.com'},
'username' => 'judearasu',

}
}
'urls' => {'Website'=> 'http://judearasu.github.com'},'username' => 'judearasu'
}
subject.stub(:raw_info) { @raw_info }
end

it 'returns the id from raw_info' do
Expand Down Expand Up @@ -78,7 +75,7 @@
end
it 'returns the website from raw_info' do
subject.info[:urls].should be_a(Hash)
subject.info[:urls][:Website].should eq('http://judearasu.github.com')

end
it 'returns the username from raw_info' do
subject.info[:username].should eq('judearasu')
Expand Down

0 comments on commit e2e30ae

Please sign in to comment.