add two more default aspects for new users

This commit is contained in:
danielgrippi 2011-07-29 19:19:30 -07:00
parent 3a6f0583c7
commit 905a982d35
3 changed files with 9 additions and 4 deletions

View file

@ -345,10 +345,13 @@ class User < ActiveRecord::Base
def seed_aspects
self.aspects.create(:name => I18n.t('aspects.seed.family'))
work = self.aspects.create(:name => I18n.t('aspects.seed.work'))
self.aspects.create(:name => I18n.t('aspects.seed.friends'))
self.aspects.create(:name => I18n.t('aspects.seed.work'))
aq = self.aspects.create(:name => I18n.t('aspects.seed.acquaintances'))
default_account = Webfinger.new('diasporahq@joindiaspora.com').fetch
self.share_with(default_account, work)
work
self.share_with(default_account, aq)
aq
end
def self.generate_key

View file

@ -149,6 +149,8 @@ en:
seed:
family: "Family"
work: "Work"
acquaintances: "Acquaintances"
friends: "Friends"
index:
donate: "Donate"
keep_us_running: "Keep %{pod} running fast, buy our servers their monthly coffee fix!"

View file

@ -108,7 +108,7 @@ describe InvitationsController do
it 'seeds the aspects' do
put :update, @accept_params
invited.aspects.count.should == 2
invited.aspects.count.should == 4
end
it 'adds a contact' do