summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/controllers/projects_controller_spec.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/controllers/projects_controller_spec.rb b/spec/controllers/projects_controller_spec.rb
index 61d285c29ae..192cca45d99 100644
--- a/spec/controllers/projects_controller_spec.rb
+++ b/spec/controllers/projects_controller_spec.rb
@@ -221,8 +221,8 @@ describe ProjectsController do
expect { update_project path: 'renamed_path' }
.to change { project.reload.path }
- expect(project.reload.path).to include 'renamed_path'
- expect(assigns(:repository).path).to include project.reload.path
+ expect(project.path).to include 'renamed_path'
+ expect(assigns(:repository).path).to include project.path
expect(response).to have_http_status(302)
end
end
@@ -238,7 +238,6 @@ describe ProjectsController do
expect { update_project path: 'renamed_path' }
.not_to change { project.reload.path }
- expect(project.reload.path).not_to include 'renamed_path'
expect(controller).to set_flash[:alert].to(/container registry tags/)
expect(response).to have_http_status(200)
end