From f16cf223ebb47d3b064e3c879658f1f5f6040597 Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Sat, 28 May 2011 20:14:18 -0700 Subject: [PATCH] This test was not testing how person objects are actually built. Fixed. --- spec/models/person_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/person_spec.rb b/spec/models/person_spec.rb index 6a8646884..b7b90e876 100644 --- a/spec/models/person_spec.rb +++ b/spec/models/person_spec.rb @@ -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