mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
changed contact has_many addresses to has_one
This commit is contained in:
parent
356835bebf
commit
27ca5714cd
5 changed files with 6 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
|||
require "rails_helper"
|
||||
|
||||
describe Contact do
|
||||
it { should have_many(:addresses) }
|
||||
it { should have_one(:address) }
|
||||
|
||||
context 'with invalid attribute' do
|
||||
before(:each) { @contact = Fabricate(:contact) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue