mirror of
https://github.com/internetee/registry.git
synced 2025-07-02 17:23:34 +02:00
Add initial models and corresponding test files
This commit is contained in:
parent
bca4470643
commit
542ea5101e
28 changed files with 548 additions and 8 deletions
14
spec/models/domain_spec.rb
Normal file
14
spec/models/domain_spec.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
require "rails_helper"
|
||||
|
||||
describe Domain do
|
||||
it { should belong_to(:registrar) }
|
||||
it { should belong_to(:ns_set) }
|
||||
it { should belong_to(:admin_contact) }
|
||||
it { should belong_to(:owner_contact) }
|
||||
it { should belong_to(:technical_contact) }
|
||||
|
||||
it 'creates a resource' do
|
||||
d = Fabricate(:domain)
|
||||
expect(d.name).to_not be_nil
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue