FIX: prevents group show serializer to override basic group serializer (#10326)

This commit is contained in:
Joffrey JAFFEUX
2020-07-28 18:11:15 +02:00
committed by GitHub
parent 4e317e7aca
commit 11faec71ae
5 changed files with 3 additions and 42 deletions

View File

@ -13,7 +13,7 @@ describe GroupShowSerializer do
it 'should return the right attributes' do
json = GroupShowSerializer.new(group, scope: Guardian.new(user)).as_json
expect(json[:group_show][:is_group_owner]).to eq(true)
expect(json[:group_show][:is_group_owner]).to eq(false)
expect(json[:group_show][:is_group_user]).to eq(true)
end
end