mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 10:19:45 +02:00
Refactor settings
This commit is contained in:
parent
26f5eda636
commit
dafcb6f78c
25 changed files with 132 additions and 282 deletions
20
spec/support/general.rb
Normal file
20
spec/support/general.rb
Normal file
|
@ -0,0 +1,20 @@
|
|||
module General
|
||||
def create_settings
|
||||
Setting.ds_algorithm = 2
|
||||
Setting.ds_data_allowed = true
|
||||
Setting.ds_data_with_key_allowed = true
|
||||
Setting.key_data_allowed = true
|
||||
|
||||
Setting.dnskeys_min_count = 0
|
||||
Setting.dnskeys_max_count = 9
|
||||
Setting.ns_min_count = 2
|
||||
Setting.ns_max_count = 11
|
||||
|
||||
Setting.transfer_wait_time = 0
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
RSpec.configure do |c|
|
||||
c.include General
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue