Build test diaspora_handle properly.

This commit is contained in:
Alec Leamas 2010-12-28 01:26:16 +01:00 committed by Alec Leamas
parent a1b92f5224
commit 215d6a8504

View file

@ -35,7 +35,7 @@ Factory.define :user do |u|
user.person = Factory.build(:person, :profile => Factory.create(:profile),
:owner_id => user._id,
:serialized_public_key => user.encryption_key.public_key.export,
:diaspora_handle => "#{user.username}@#{AppConfig[:pod_url].gsub(/(https?:|www\.)\/\//, '').chop!}")
:diaspora_handle => "#{user.username}@#{AppConfig[:pod_uri].host}")
end
end