This test was not testing how person objects are actually built. Fixed.

This commit is contained in:
Sarah Mei 2011-05-28 20:14:18 -07:00
parent 828cbab792
commit f16cf223eb

View file

@ -40,8 +40,8 @@ describe Person do
describe '#diaspora_handle' do
context 'local people' do
it 'uses the pod config url to set the diaspora_handle' do
new_user = Factory.create(:user)
new_user.person.diaspora_handle.should == new_user.username + "@" + AppConfig[:pod_uri].host
new_person = User.build(:username => "foo123", :email => "foo123@example.com", :password => "password", :password_confirmation => "password").person
new_person.diaspora_handle.should == "foo123@#{AppConfig[:pod_uri].host}"
end
end