Refactor zones

#475
This commit is contained in:
Artur Beljajev 2017-04-24 18:20:06 +03:00
parent eeb4849c1e
commit 91fab05bfb
9 changed files with 136 additions and 20 deletions

View file

@ -12,7 +12,7 @@ RSpec.describe 'admin zone create', settings: false do
.to change { DNS::Zone.count }.from(0).to(1)
end
text_attributes = %i[origin email master_nameserver]
text_attributes = %i[origin email master_nameserver ns_records a_records a4_records]
integer_attributes = %i[ttl refresh retry expire minimum_ttl]
text_attributes.each do |attr_name|