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

14 lines
277 B
Ruby
Raw Normal View History

2018-11-29 15:57:57 -05:00
# frozen_string_literal: true
require 'rails_helper'
2018-11-30 02:00:03 -05:00
RSpec.describe User do
subject { create(:usual_account).user }
2018-11-29 18:26:48 -05:00
2019-07-20 06:07:02 -04:00
describe '#account' do
it { is_expected.to belong_to(:account).required(false) }
2018-12-01 21:50:10 -05:00
2019-07-20 06:07:02 -04:00
it { is_expected.to validate_uniqueness_of :account }
end
2018-11-29 15:57:57 -05:00
end