Validate origin domains #2849

This commit is contained in:
Martin Lensment 2015-08-25 16:33:47 +03:00
parent 71b2763df6
commit 5ba39fb406
23 changed files with 99 additions and 24 deletions

View file

@ -2,6 +2,7 @@ require 'rails_helper'
describe Contact do
before :all do
Fabricate(:zonefile_setting, origin: 'ee')
@api_user = Fabricate(:api_user)
end
@ -383,6 +384,7 @@ end
describe Contact, '.destroy_orphans' do
before do
Fabricate(:zonefile_setting, origin: 'ee')
@contact_1 = Fabricate(:contact, code: 'asd12')
@contact_2 = Fabricate(:contact, code: 'asd13')
end