DEV: Fix Lint/ShadowedArgument (#24733)

This commit is contained in:
Jarek Radosz
2023-12-06 13:16:10 +01:00
committed by GitHub
parent 1e471f7ec2
commit 4280c01153
6 changed files with 6 additions and 7 deletions

View File

@@ -32,7 +32,7 @@ RSpec.describe User do
describe "default sidebar section links" do
fab!(:category)
fab!(:secured_category) do |category|
fab!(:secured_category) do
category = Fabricate(:category)
category.permissions = { "staff" => :full }
category.save!

View File

@@ -300,7 +300,7 @@ RSpec.describe InvitesController do
context "when topic is private" do
fab!(:group)
fab!(:secured_category) do |category|
fab!(:secured_category) do
category = Fabricate(:category)
category.permissions = { group.name => :full }
category.save!