Do not create a default email address. Will be done by wizard automatically.
This commit is contained in:
parent
3ca0b26fc1
commit
51c450cc0c
3 changed files with 14 additions and 8 deletions
|
@ -1426,13 +1426,6 @@ Setting.create_if_not_exists(
|
||||||
frontend: true
|
frontend: true
|
||||||
)
|
)
|
||||||
|
|
||||||
email_address = EmailAddress.create_if_not_exists(
|
|
||||||
id: 1,
|
|
||||||
realname: 'Zammad',
|
|
||||||
email: 'zammad@localhost',
|
|
||||||
updated_by_id: 1,
|
|
||||||
created_by_id: 1
|
|
||||||
)
|
|
||||||
signature = Signature.create_if_not_exists(
|
signature = Signature.create_if_not_exists(
|
||||||
id: 1,
|
id: 1,
|
||||||
name: 'default',
|
name: 'default',
|
||||||
|
@ -1473,7 +1466,6 @@ Role.create_if_not_exists(
|
||||||
Group.create_if_not_exists(
|
Group.create_if_not_exists(
|
||||||
id: 1,
|
id: 1,
|
||||||
name: 'Users',
|
name: 'Users',
|
||||||
email_address_id: email_address.id,
|
|
||||||
signature_id: signature.id,
|
signature_id: signature.id,
|
||||||
note: 'Standard Group/Pool for Tickets.',
|
note: 'Standard Group/Pool for Tickets.',
|
||||||
updated_by_id: 1,
|
updated_by_id: 1,
|
||||||
|
|
13
test/fixtures/seeds.rb
vendored
Normal file
13
test/fixtures/seeds.rb
vendored
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
# encoding: utf-8
|
||||||
|
# inital data set as extention to db/seeds.rb
|
||||||
|
email_address = EmailAddress.create_if_not_exists(
|
||||||
|
id: 1,
|
||||||
|
realname: 'Zammad',
|
||||||
|
email: 'zammad@localhost',
|
||||||
|
updated_by_id: 1,
|
||||||
|
created_by_id: 1
|
||||||
|
)
|
||||||
|
Group.all.each {|group|
|
||||||
|
group.email_address_id = email_address.id
|
||||||
|
group.save
|
||||||
|
}
|
|
@ -22,6 +22,7 @@ class ActiveSupport::TestCase
|
||||||
|
|
||||||
# load seeds
|
# load seeds
|
||||||
load "#{Rails.root}/db/seeds.rb"
|
load "#{Rails.root}/db/seeds.rb"
|
||||||
|
load "#{Rails.root}/test/fixtures/seeds.rb"
|
||||||
|
|
||||||
# proccess background jobs
|
# proccess background jobs
|
||||||
Delayed::Worker.new.work_off
|
Delayed::Worker.new.work_off
|
||||||
|
|
Loading…
Reference in a new issue