Permalink
Browse files

check for url

  • Loading branch information...
1 parent 1883898 commit 3092394d60ee46f42fad18a3791dfcee2644fb50 @judearasu committed Jul 8, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 spec/omniauth/strategies/miso_spec.rb
@@ -45,7 +45,7 @@
'name' => '',
'nickname' => '',
'profile_image_url' => 'http://gomiso.com/uploads/BAhbCFsHOgZmIiEyMDEyLzA3LzA3LzA1LzQxLzI5Lzc0OC9maWxlWwc6BmU6CHBuZ1sIOgZwOgp0aHVtYiILODB4ODAj.png',
- 'urls' => {'Website'=>''},
+ 'urls' => {'Website'=> 'http://judearasu.github.com'},
'username' => 'judearasu',
}
@@ -76,7 +76,10 @@
it 'returns the profile image url from raw_info' do
subject.info[:profile_image_url].should eq('http://gomiso.com/uploads/BAhbCFsHOgZmIiEyMDEyLzA3LzA3LzA1LzQxLzI5Lzc0OC9maWxlWwc6BmU6CHBuZ1sIOgZwOgp0aHVtYiILODB4ODAj.png')
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')
end

0 comments on commit 3092394

Please sign in to comment.