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.
2018-12-01 21:03:19 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
RSpec.describe Account do
|
2018-12-02 05:38:22 -05:00
|
|
|
subject { create :account_with_user }
|
2018-12-01 21:03:19 -05:00
|
|
|
|
2018-12-01 21:50:10 -05:00
|
|
|
it do
|
|
|
|
is_expected.to \
|
|
|
|
have_one(:user)
|
|
|
|
.dependent(:restrict_with_exception)
|
|
|
|
end
|
|
|
|
|
2018-12-02 05:54:56 -05:00
|
|
|
it do
|
|
|
|
is_expected.to \
|
|
|
|
have_many(:membership_applications)
|
|
|
|
.dependent(:restrict_with_exception)
|
|
|
|
end
|
|
|
|
|
2018-12-01 21:28:34 -05:00
|
|
|
it do
|
|
|
|
is_expected.to \
|
|
|
|
have_many(:passport_confirmations)
|
|
|
|
.dependent(:restrict_with_exception)
|
|
|
|
end
|
2018-12-01 21:50:10 -05:00
|
|
|
|
|
|
|
it { is_expected.not_to validate_presence_of :user }
|
2018-12-04 20:49:26 -05:00
|
|
|
|
|
|
|
pending '.guests'
|
|
|
|
pending '#guest?'
|
2018-12-01 21:03:19 -05:00
|
|
|
end
|