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:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-04-08 18:10:26 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-04-08 18:10:26 +0300
commit9f9dc2bc412632e6b459d0bb9e1ac205c8cf34af (patch)
treecaafa909017726a087ae4e4bdaeb558ac2c04a9b /spec/models/namespaces
parent88bacc889f129f8d95af34f1781dd66769ec27cc (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/namespaces')
-rw-r--r--spec/models/namespaces/project_namespace_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/namespaces/project_namespace_spec.rb b/spec/models/namespaces/project_namespace_spec.rb
index 47cf866c143..c995571c3c9 100644
--- a/spec/models/namespaces/project_namespace_spec.rb
+++ b/spec/models/namespaces/project_namespace_spec.rb
@@ -17,11 +17,11 @@ RSpec.describe Namespaces::ProjectNamespace, type: :model do
let_it_be(:project) { create(:project) }
let_it_be(:project_namespace) { project.project_namespace }
- it 'keeps the associated project' do
+ it 'also deletes associated project' do
project_namespace.delete
expect { project_namespace.reload }.to raise_error(ActiveRecord::RecordNotFound)
- expect(project.reload.project_namespace).to be_nil
+ expect { project.reload }.to raise_error(ActiveRecord::RecordNotFound)
end
end
end