1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/spec/models/contact_list_spec.rb

32 lines
566 B
Ruby
Raw Normal View History

2019-06-26 20:21:37 -04:00
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe ContactList do
subject { create :empty_contact_list }
2019-06-26 20:21:37 -04:00
2019-07-20 06:07:02 -04:00
describe '#account' do
it do
is_expected.to \
have_one(:account)
.dependent(:restrict_with_exception)
end
2019-06-26 20:21:37 -04:00
end
2019-07-20 06:07:02 -04:00
describe '#person' do
it do
is_expected.to \
have_one(:person)
.dependent(:restrict_with_exception)
end
2019-06-26 20:21:37 -04:00
end
2019-08-14 09:10:09 -04:00
describe '#contacts' do
it do
is_expected.to \
have_many(:contacts)
.dependent(:restrict_with_exception)
end
end
2019-06-26 20:21:37 -04:00
end