11 lines
242 B
Ruby
11 lines
242 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
RSpec.describe User do
|
|
subject { create(:usual_account).user }
|
|
|
|
it { is_expected.to belong_to(:account).required(false) }
|
|
|
|
it { is_expected.to validate_uniqueness_of :account }
|
|
end
|