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
cca4c9e8
Commit
cca4c9e8
authored
Feb 22, 2022
by
Siddharth Asthana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the unused instance variable from the controller
Changelog: other
parent
6d7e0f06
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
13 deletions
+0
-13
app/controllers/projects/packages/infrastructure_registry_controller.rb
...s/projects/packages/infrastructure_registry_controller.rb
+0
-1
spec/controllers/projects/packages/infrastructure_registry_controller_spec.rb
...jects/packages/infrastructure_registry_controller_spec.rb
+0
-12
No files found.
app/controllers/projects/packages/infrastructure_registry_controller.rb
View file @
cca4c9e8
...
@@ -9,7 +9,6 @@ module Projects
...
@@ -9,7 +9,6 @@ module Projects
def
show
def
show
@package
=
project
.
packages
.
find
(
params
[
:id
])
@package
=
project
.
packages
.
find
(
params
[
:id
])
@package_files
=
@package
.
installable_package_files
.
recent
end
end
end
end
end
end
...
...
spec/controllers/projects/packages/infrastructure_registry_controller_spec.rb
View file @
cca4c9e8
...
@@ -41,17 +41,5 @@ RSpec.describe Projects::Packages::InfrastructureRegistryController do
...
@@ -41,17 +41,5 @@ RSpec.describe Projects::Packages::InfrastructureRegistryController do
it_behaves_like
'returning response status'
,
:not_found
it_behaves_like
'returning response status'
,
:not_found
end
end
context
'with package file pending destruction'
do
let_it_be
(
:package_file_pending_destruction
)
{
create
(
:package_file
,
:pending_destruction
,
package:
terraform_module
)
}
let
(
:terraform_module_package_file
)
{
terraform_module
.
package_files
.
first
}
it
'does not return them'
do
subject
expect
(
assigns
(
:package_files
)).
to
contain_exactly
(
terraform_module_package_file
)
end
end
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