mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
10 lines
361 B
Ruby
10 lines
361 B
Ruby
|
|
require 'rails_helper'
|
||
|
|
|
||
|
|
RSpec.describe User, type: :model do
|
||
|
|
it { is_expected.to have_many(:user_services) }
|
||
|
|
it { is_expected.to have_many(:services).through(:user_services) }
|
||
|
|
it { is_expected.to validate_presence_of(:first_name) }
|
||
|
|
it { is_expected.to validate_presence_of(:last_name) }
|
||
|
|
it { is_expected.to validate_acceptance_of(:tos_accepted) }
|
||
|
|
end
|