mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
parent
7e46ba01c2
commit
469312d7ee
2 changed files with 27 additions and 0 deletions
|
@ -16,6 +16,7 @@ require 'support/matchers/active_job'
|
|||
require 'support/capybara'
|
||||
require 'support/database_cleaner'
|
||||
require 'support/paper_trail'
|
||||
require 'support/settings'
|
||||
|
||||
ActiveRecord::Migration.maintain_test_schema!
|
||||
|
||||
|
|
26
spec/support/settings.rb
Normal file
26
spec/support/settings.rb
Normal file
|
@ -0,0 +1,26 @@
|
|||
RSpec.configure do |config|
|
||||
config.before :example do |example|
|
||||
if example.metadata[:db]
|
||||
Fabricate(:zonefile_setting, origin: 'com')
|
||||
|
||||
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
|
||||
|
||||
Setting.admin_contacts_min_count = 1
|
||||
Setting.admin_contacts_max_count = 10
|
||||
Setting.tech_contacts_min_count = 0
|
||||
Setting.tech_contacts_max_count = 10
|
||||
|
||||
Setting.client_side_status_editing_enabled = true
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue