mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 16:02:03 +02:00
Use FactoryBot factories instead of fabricators
This commit is contained in:
parent
0cd913daf8
commit
9fd02c738f
30 changed files with 241 additions and 267 deletions
|
@ -4,11 +4,15 @@ RSpec.describe Domain do
|
|||
it { is_expected.to alias_attribute(:force_delete_time, :force_delete_at) }
|
||||
|
||||
before :example do
|
||||
Fabricate(:zone, origin: 'ee')
|
||||
create(:zone, origin: 'ee')
|
||||
end
|
||||
|
||||
it 'should set force delete time' do
|
||||
domain = Fabricate(:domain)
|
||||
domain = build(:domain)
|
||||
domain.nameservers.build(attributes_for(:nameserver))
|
||||
domain.nameservers.build(attributes_for(:nameserver))
|
||||
domain.save!
|
||||
|
||||
domain.statuses = ['ok']
|
||||
domain.schedule_force_delete
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue