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
3d38d604
Commit
3d38d604
authored
Feb 25, 2021
by
jboyson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix erroneously deleted expectation
parent
94e8c6a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
spec/controllers/projects_controller_spec.rb
spec/controllers/projects_controller_spec.rb
+2
-0
No files found.
spec/controllers/projects_controller_spec.rb
View file @
3d38d604
...
@@ -610,6 +610,7 @@ RSpec.describe ProjectsController do
...
@@ -610,6 +610,7 @@ RSpec.describe ProjectsController do
it
'does not show any references to the conflicting path'
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
{
update_project
(
path:
random_name
)
}.
not_to
change
{
project
.
reload
.
path
}
expect
(
response
).
to
have_gitlab_http_status
(
:ok
)
expect
(
response
.
body
).
not_to
include
(
random_name
)
expect
(
response
.
body
).
not_to
include
(
random_name
)
end
end
end
end
...
@@ -667,6 +668,7 @@ RSpec.describe ProjectsController do
...
@@ -667,6 +668,7 @@ RSpec.describe ProjectsController do
.
not_to
change
{
project
.
reload
.
path
}
.
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
(
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
)
end
end
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