double checking that matches are in front or back

This commit is contained in:
maxwell 2010-10-22 16:34:08 -07:00
parent 6720fa2c59
commit 5af3d5fa82

View file

@ -198,9 +198,9 @@ describe Person do
it 'should return nil if there is not an exact match' do
Redfinger.stub!(:finger).and_return(nil)
Person.stub!(:from_webfinger_profile).and_return(false)
person = Factory(:person, :diaspora_handle => "tomtom@tom.joindiaspora.com")
person1 = Factory(:person, :diaspora_handle => "tom@tom.joindiaspora.comm")
#Person.by_webfinger("tom@tom.joindiaspora.com").should_be false
proc{ Person.by_webfinger("tom@tom.joindiaspora.com")}.should raise_error
end