Commit d44b4a17 authored by Ethan Urie's avatar Ethan Urie

Merge branch 'issue_349318' into 'master'

Remove the unused instance variable from the controller

See merge request gitlab-org/gitlab!81193
parents 087090ff cca4c9e8
......@@ -9,7 +9,6 @@ module Projects
def show
@package = project.packages.find(params[:id])
@package_files = @package.installable_package_files.recent
end
end
end
......
......@@ -41,17 +41,5 @@ RSpec.describe Projects::Packages::InfrastructureRegistryController do
it_behaves_like 'returning response status', :not_found
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment