summaryrefslogtreecommitdiff
path: root/spec/controllers
diff options
context:
space:
mode:
authorAram Visser <hello@aramvisser.com>2018-06-25 10:19:13 +0700
committerAram Visser <hello@aramvisser.com>2018-06-25 10:19:13 +0700
commit0d22b2141f4ba9f75039d9614027b99946f35622 (patch)
tree60836132cbeebe65a5fba2092ea46454f197f0f2 /spec/controllers
parent2bac2918b2d6f12d94f739f4b6865b9e9221c642 (diff)
downloadgitlab-ce-0d22b2141f4ba9f75039d9614027b99946f35622.tar.gz
Set flash error message only for current request when updating project
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/projects_controller_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/projects_controller_spec.rb b/spec/controllers/projects_controller_spec.rb
index 90e698925b6..27f04be3fdf 100644
--- a/spec/controllers/projects_controller_spec.rb
+++ b/spec/controllers/projects_controller_spec.rb
@@ -329,7 +329,7 @@ describe ProjectsController do
expect { update_project path: 'renamed_path' }
.not_to change { project.reload.path }
- expect(controller).to set_flash[:alert].to(/container registry tags/)
+ expect(controller).to set_flash.now[:alert].to(/container registry tags/)
expect(response).to have_gitlab_http_status(200)
end
end