Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6dc4743a
Commit
6dc4743a
authored
Feb 01, 2021
by
jboyson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update specs to expect redirect
parent
fc16e863
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/controllers/projects_controller_spec.rb
spec/controllers/projects_controller_spec.rb
+2
-2
No files found.
spec/controllers/projects_controller_spec.rb
View file @
6dc4743a
...
...
@@ -610,7 +610,7 @@ RSpec.describe ProjectsController do
it
'does not show any references to the conflicting path'
do
expect
{
update_project
(
path:
random_name
)
}.
not_to
change
{
project
.
reload
.
path
}
expect
(
response
).
to
have_gitlab_http_status
(
:
ok
)
expect
(
response
).
to
have_gitlab_http_status
(
:
redirect
)
expect
(
response
.
body
).
not_to
include
(
random_name
)
end
end
...
...
@@ -668,7 +668,7 @@ RSpec.describe ProjectsController do
.
not_to
change
{
project
.
reload
.
path
}
expect
(
controller
).
to
set_flash
[
:alert
].
to
(
s_
(
'UpdateProject|Cannot rename project because it contains container registry tags!'
))
expect
(
response
).
to
have_gitlab_http_status
(
:
ok
)
expect
(
response
).
to
have_gitlab_http_status
(
:
redirect
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment