mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
Dynamic validations example
This commit is contained in:
parent
0c5b7c4cb8
commit
415f109d8f
7 changed files with 75 additions and 48 deletions
|
@ -5,3 +5,11 @@ Fabricator(:setting_group) do
|
|||
Fabricate(:setting, code: 'ns_max_count', value: 13)
|
||||
]}
|
||||
end
|
||||
|
||||
Fabricator(:domain_validation_setting_group, from: :setting_group) do
|
||||
code 'domain_validation'
|
||||
settings { [
|
||||
Fabricate(:setting, code: 'ns_min_count', value: 1),
|
||||
Fabricate(:setting, code: 'ns_max_count', value: 13)
|
||||
]}
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue