diff options
Diffstat (limited to 'spec/finders')
-rw-r--r-- | spec/finders/access_requests_finder_spec.rb | 4 | ||||
-rw-r--r-- | spec/finders/group_members_finder_spec.rb | 2 | ||||
-rw-r--r-- | spec/finders/members_finder_spec.rb | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/spec/finders/access_requests_finder_spec.rb b/spec/finders/access_requests_finder_spec.rb index 4c67087b50f..fbfc8035bcc 100644 --- a/spec/finders/access_requests_finder_spec.rb +++ b/spec/finders/access_requests_finder_spec.rb @@ -7,13 +7,13 @@ describe AccessRequestsFinder do let(:access_requester) { create(:user) } let(:project) do - create(:project, :public, :access_requestable) do |project| + create(:project, :public) do |project| project.request_access(access_requester) end end let(:group) do - create(:group, :public, :access_requestable) do |group| + create(:group, :public) do |group| group.request_access(access_requester) end end diff --git a/spec/finders/group_members_finder_spec.rb b/spec/finders/group_members_finder_spec.rb index 12f92f6b5b0..08f3b4024b3 100644 --- a/spec/finders/group_members_finder_spec.rb +++ b/spec/finders/group_members_finder_spec.rb @@ -4,7 +4,7 @@ require 'spec_helper' describe GroupMembersFinder, '#execute' do let(:group) { create(:group) } - let(:nested_group) { create(:group, :access_requestable, parent: group) } + let(:nested_group) { create(:group, parent: group) } let(:user1) { create(:user) } let(:user2) { create(:user) } let(:user3) { create(:user) } diff --git a/spec/finders/members_finder_spec.rb b/spec/finders/members_finder_spec.rb index 9849808c255..f9b8fee6f2d 100644 --- a/spec/finders/members_finder_spec.rb +++ b/spec/finders/members_finder_spec.rb @@ -4,7 +4,7 @@ require 'spec_helper' describe MembersFinder, '#execute' do set(:group) { create(:group) } - set(:nested_group) { create(:group, :access_requestable, parent: group) } + set(:nested_group) { create(:group, parent: group) } set(:project) { create(:project, namespace: nested_group) } set(:user1) { create(:user) } set(:user2) { create(:user) } @@ -57,7 +57,7 @@ describe MembersFinder, '#execute' do context 'when include_invited_groups_members == true' do subject { described_class.new(project, user2).execute(include_invited_groups_members: true) } - set(:linked_group) { create(:group, :public, :access_requestable) } + set(:linked_group) { create(:group, :public) } set(:nested_linked_group) { create(:group, parent: linked_group) } set(:linked_group_member) { linked_group.add_guest(user1) } set(:nested_linked_group_member) { nested_linked_group.add_guest(user2) } |