mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 23:42:04 +02:00
Dynamic validations example
This commit is contained in:
parent
0c5b7c4cb8
commit
415f109d8f
7 changed files with 75 additions and 48 deletions
|
@ -51,7 +51,11 @@ describe Contact, '#get_relation' do
|
|||
end
|
||||
|
||||
describe Contact, '#has_relation' do
|
||||
before(:each) { Fabricate(:domain) }
|
||||
before(:each) do
|
||||
Fabricate(:domain_validation_setting_group)
|
||||
Fabricate(:domain)
|
||||
end
|
||||
|
||||
it 'should return false if no relation' do
|
||||
expect(Contact.last.has_relation(:chewbacca)).to eq false
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue