Commit cca4c9e8 authored by Siddharth Asthana's avatar Siddharth Asthana

Remove the unused instance variable from the controller

Changelog: other
parent 6d7e0f06
...@@ -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
......
...@@ -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
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