diff options
Diffstat (limited to 'spec/features/security')
3 files changed, 6 insertions, 6 deletions
diff --git a/spec/features/security/project/snippet/internal_access_spec.rb b/spec/features/security/project/snippet/internal_access_spec.rb index 12237863188..ab080f0a460 100644 --- a/spec/features/security/project/snippet/internal_access_spec.rb +++ b/spec/features/security/project/snippet/internal_access_spec.rb @@ -6,8 +6,8 @@ RSpec.describe "Internal Project Snippets Access" do include AccessMatchers let_it_be(:project) { create(:project, :internal) } - let_it_be(:internal_snippet) { create(:project_snippet, :internal, project: project, author: project.owner) } - let_it_be(:private_snippet) { create(:project_snippet, :private, project: project, author: project.owner) } + let_it_be(:internal_snippet) { create(:project_snippet, :internal, project: project, author: project.first_owner) } + let_it_be(:private_snippet) { create(:project_snippet, :private, project: project, author: project.first_owner) } describe "GET /:project_path/snippets" do subject { project_snippets_path(project) } diff --git a/spec/features/security/project/snippet/private_access_spec.rb b/spec/features/security/project/snippet/private_access_spec.rb index 0c06841399d..1e0afc09b74 100644 --- a/spec/features/security/project/snippet/private_access_spec.rb +++ b/spec/features/security/project/snippet/private_access_spec.rb @@ -6,7 +6,7 @@ RSpec.describe "Private Project Snippets Access" do include AccessMatchers let_it_be(:project) { create(:project, :private) } - let_it_be(:private_snippet) { create(:project_snippet, :private, project: project, author: project.owner) } + let_it_be(:private_snippet) { create(:project_snippet, :private, project: project, author: project.first_owner) } describe "GET /:project_path/snippets" do subject { project_snippets_path(project) } diff --git a/spec/features/security/project/snippet/public_access_spec.rb b/spec/features/security/project/snippet/public_access_spec.rb index 2ae08205602..f734f7ba9e2 100644 --- a/spec/features/security/project/snippet/public_access_spec.rb +++ b/spec/features/security/project/snippet/public_access_spec.rb @@ -6,9 +6,9 @@ RSpec.describe "Public Project Snippets Access" do include AccessMatchers let_it_be(:project) { create(:project, :public) } - let_it_be(:public_snippet) { create(:project_snippet, :public, project: project, author: project.owner) } - let_it_be(:internal_snippet) { create(:project_snippet, :internal, project: project, author: project.owner) } - let_it_be(:private_snippet) { create(:project_snippet, :private, project: project, author: project.owner) } + let_it_be(:public_snippet) { create(:project_snippet, :public, project: project, author: project.first_owner) } + let_it_be(:internal_snippet) { create(:project_snippet, :internal, project: project, author: project.first_owner) } + let_it_be(:private_snippet) { create(:project_snippet, :private, project: project, author: project.first_owner) } describe "GET /:project_path/snippets" do subject { project_snippets_path(project) } |