mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 11:43:44 +08:00
Removed unnecessary let
This commit is contained in:
parent
b95a5330b7
commit
cdf17986aa
|
@ -562,13 +562,11 @@ describe Guardian do
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'for a private category for automatic groups' do
|
describe 'for a private category for automatic groups' do
|
||||||
let(:group) { automatic_group }
|
|
||||||
|
|
||||||
let(:category) do
|
let(:category) do
|
||||||
Fabricate(:private_category, group: group, read_restricted: true)
|
Fabricate(:private_category, group: automatic_group, read_restricted: true)
|
||||||
end
|
end
|
||||||
|
|
||||||
let(:group_owner) { Fabricate(:user).tap { |user| group.add_owner(user) } }
|
let(:group_owner) { Fabricate(:user).tap { |user| automatic_group.add_owner(user) } }
|
||||||
let(:topic) { Fabricate(:topic, category: category) }
|
let(:topic) { Fabricate(:topic, category: category) }
|
||||||
|
|
||||||
it 'should return false for all type of users' do
|
it 'should return false for all type of users' do
|
||||||
|
|
Loading…
Reference in New Issue
Block a user