diff --git a/spec/policies/aggregation_policy_spec.rb b/spec/policies/aggregation_policy_spec.rb index aae9a36d0..73f53ef49 100644 --- a/spec/policies/aggregation_policy_spec.rb +++ b/spec/policies/aggregation_policy_spec.rb @@ -5,15 +5,11 @@ let(:anonymous_user) { nil } let(:logged_in_user) { create(:user) } let(:resource_owner) { create(:user) } - let(:project) { build(:project, owner: resource_owner) } - let(:public_aggregation) { build(:aggregation, workflow: build(:workflow, project: project)) } - # let(:private_aggregation) { build(:aggregation, workflow: build(:workflow, project: project)) } before do public_aggregation.save! - # private_aggregation.save! end describe 'index' do @@ -86,10 +82,6 @@ it "includes aggregations from public projects" do expect(resolved_scope).to include(public_aggregation) end - - xit 'includes aggregations from owned private projects' do - expect(resolved_scope).to include(private_aggregation) - end end context 'for an admin' do @@ -100,7 +92,6 @@ expect(resolved_scope).to include(public_aggregation) end end - end end end