add two more default aspects for new users
This commit is contained in:
parent
3a6f0583c7
commit
905a982d35
3 changed files with 9 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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!"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue