diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-10-05 10:38:05 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-10-05 13:12:40 +0200 |
commit | e013d39875bbf5f6e11fda627a8dab045023d59e (patch) | |
tree | 0d671d2a4c1e9600eea6f86fb046296bbb6dd218 /spec/serializers | |
parent | 951abe2b2efc3a208ceea46d9c1c47d3d253ff63 (diff) | |
download | gitlab-ce-e013d39875bbf5f6e11fda627a8dab045023d59e.tar.gz |
Optimize finding a membership for a user to avoid extra queries
Diffstat (limited to 'spec/serializers')
-rw-r--r-- | spec/serializers/group_child_entity_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/serializers/group_child_entity_spec.rb b/spec/serializers/group_child_entity_spec.rb index 54a1b1846e1..64000385781 100644 --- a/spec/serializers/group_child_entity_spec.rb +++ b/spec/serializers/group_child_entity_spec.rb @@ -34,7 +34,7 @@ describe GroupChildEntity do end describe 'for a project' do - set(:object) do + let(:object) do create(:project, :with_avatar, description: 'Awesomeness') end @@ -55,7 +55,7 @@ describe GroupChildEntity do end describe 'for a group', :nested_groups do - set(:object) do + let(:object) do create(:group, :nested, :with_avatar, description: 'Awesomeness') end |