diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2018-03-01 16:23:34 +0000 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2018-03-01 16:23:34 +0000 |
commit | c37cbb3125d5c1542371ff72c5ec7d76e3d2261b (patch) | |
tree | de670d30851b05b817b95d5826f2ef7be25403af /spec/migrations | |
parent | de454de9b10f0dd534884c8ffeabe3e534993349 (diff) | |
parent | 6f152fd193a4b8ab527c526bed891874f075179e (diff) | |
download | gitlab-ce-c37cbb3125d5c1542371ff72c5ec7d76e3d2261b.tar.gz |
Merge branch 'dz-namespace-id-not-null' into 'master'
Make project#namespace_id not null
Closes #26052
See merge request gitlab-org/gitlab-ce!17448
Diffstat (limited to 'spec/migrations')
-rw-r--r-- | spec/migrations/cleanup_namespaceless_pending_delete_projects_spec.rb | 2 | ||||
-rw-r--r-- | spec/migrations/migrate_issues_to_ghost_user_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/migrations/cleanup_namespaceless_pending_delete_projects_spec.rb b/spec/migrations/cleanup_namespaceless_pending_delete_projects_spec.rb index b47f3314926..033d0e7584d 100644 --- a/spec/migrations/cleanup_namespaceless_pending_delete_projects_spec.rb +++ b/spec/migrations/cleanup_namespaceless_pending_delete_projects_spec.rb @@ -1,7 +1,7 @@ require 'spec_helper' require Rails.root.join('db', 'post_migrate', '20170502101023_cleanup_namespaceless_pending_delete_projects.rb') -describe CleanupNamespacelessPendingDeleteProjects do +describe CleanupNamespacelessPendingDeleteProjects, :migration, schema: 20180222043024 do before do # Stub after_save callbacks that will fail when Project has no namespace allow_any_instance_of(Project).to receive(:ensure_storage_path_exists).and_return(nil) diff --git a/spec/migrations/migrate_issues_to_ghost_user_spec.rb b/spec/migrations/migrate_issues_to_ghost_user_spec.rb index ff0d44e1ed2..9220b49a736 100644 --- a/spec/migrations/migrate_issues_to_ghost_user_spec.rb +++ b/spec/migrations/migrate_issues_to_ghost_user_spec.rb @@ -8,7 +8,7 @@ describe MigrateIssuesToGhostUser, :migration do let(:users) { table(:users) } before do - project = projects.create!(name: 'gitlab') + project = projects.create!(name: 'gitlab', namespace_id: 1) user = users.create(email: 'test@example.com') issues.create(title: 'Issue 1', author_id: nil, project_id: project.id) issues.create(title: 'Issue 2', author_id: user.id, project_id: project.id) |