mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-09 08:47:11 -05:00
9 lines
361 B
Ruby
9 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
|