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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/users/ghost_user_migration_spec.rb')
-rw-r--r--spec/models/users/ghost_user_migration_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/models/users/ghost_user_migration_spec.rb b/spec/models/users/ghost_user_migration_spec.rb
new file mode 100644
index 00000000000..d4a0657c3be
--- /dev/null
+++ b/spec/models/users/ghost_user_migration_spec.rb
@@ -0,0 +1,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