Skip to content
Browse files

check for url

  • Loading branch information...
1 parent 3092394 commit e2e30aee97bfdc7671db2002d73fd8070b3c3ef9 @judearasu committed Jul 8, 2012
Showing with 5 additions and 8 deletions.
  1. +5 −8 spec/omniauth/strategies/miso_spec.rb
View
13 spec/omniauth/strategies/miso_spec.rb
@@ -35,8 +35,7 @@
end
context '#info' do
before :each do
- subject.stub(:raw_info) {
- {
+ @raw_info = {
'id' => '123',
'description' => '',
'full_name' => 'Jude Arasu',
@@ -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
@@ -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')

0 comments on commit e2e30ae

Please sign in to comment.
Something went wrong with that request. Please try again.