diff options
Diffstat (limited to 'spec/controllers/projects/forks_controller_spec.rb')
-rw-r--r-- | spec/controllers/projects/forks_controller_spec.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/spec/controllers/projects/forks_controller_spec.rb b/spec/controllers/projects/forks_controller_spec.rb index 3f916f5224c..e53e53980b5 100644 --- a/spec/controllers/projects/forks_controller_spec.rb +++ b/spec/controllers/projects/forks_controller_spec.rb @@ -211,11 +211,7 @@ RSpec.describe Projects::ForksController do create(:group, :public).add_owner(user) - # TODO: There is another N+1 caused by user.can?(:create_projects, namespace) - # Defined in ForkNamespaceEntity - extra_count = 1 - - expect { do_request.call }.not_to exceed_query_limit(control.count + extra_count) + expect { do_request.call }.not_to exceed_query_limit(control) end end end |