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/account_spec.rb

27 lines
523 B
Ruby

# frozen_string_literal: true
require 'rails_helper'
RSpec.describe Account do
subject { create :account_with_user }
it do
is_expected.to \
have_one(:user)
.dependent(:restrict_with_exception)
end
it do
is_expected.to \
have_many(:membership_applications)
.dependent(:restrict_with_exception)
end
it do
is_expected.to \
have_many(:passport_confirmations)
.dependent(:restrict_with_exception)
end
it { is_expected.not_to validate_presence_of :user }
end