debian-mirror-gitlab/spec/models/users/ghost_user_migration_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
324 B
Ruby
Raw Normal View History

2022-10-11 01:57:18 +05:30
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Users::GhostUserMigration do
describe 'associations' do
it { is_expected.to belong_to(:user) }
it { is_expected.to belong_to(:initiator_user) }
end
describe 'validation' do
it { is_expected.to validate_presence_of(:user_id) }
end
end