Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ghost_user_migration_spec.rb « users « models « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d4a0657c3bee5ca012e7b270351b0fbdb6d4095a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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