Put raise back in webfinger fail

This commit is contained in:
Daniel Vincent Grippi 2010-09-13 16:05:43 -07:00
parent 26e4e088d7
commit 84b29770fe
2 changed files with 2 additions and 2 deletions

View file

@ -102,7 +102,7 @@ class Person
rescue SocketError => e
raise "Diaspora server for #{identifier} not found" if e.message =~ /Name or service not known/
end
#raise "No diaspora user found at #{identifier}"
raise "No diaspora user found at #{identifier}" unless f
Person.from_webfinger_profile(identifier, f )
end
end

View file

@ -63,7 +63,7 @@ describe Salmon do
it 'should fail to reference a nonexistent remote author' do
@parsed_salmon.author_email = 'idsfug@difgubhpsduh.rgd'
proc {@parsed_salmon.author.real_name}.should raise_error /not found/
proc {@parsed_salmon.author.real_name}.should raise_error /No diaspora user found/
end
end