diff options
Diffstat (limited to 'spec/features/security/project/snippet/public_access_spec.rb')
-rw-r--r-- | spec/features/security/project/snippet/public_access_spec.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/features/security/project/snippet/public_access_spec.rb b/spec/features/security/project/snippet/public_access_spec.rb index dfe78aa7ebc..20a271f9c0e 100644 --- a/spec/features/security/project/snippet/public_access_spec.rb +++ b/spec/features/security/project/snippet/public_access_spec.rb @@ -5,11 +5,10 @@ require 'spec_helper' RSpec.describe "Public Project Snippets Access" do include AccessMatchers - let(:project) { create(:project, :public) } - - let(:public_snippet) { create(:project_snippet, :public, project: project, author: project.owner) } - let(:internal_snippet) { create(:project_snippet, :internal, project: project, author: project.owner) } - let(:private_snippet) { create(:project_snippet, :private, project: project, author: project.owner) } + 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) } describe "GET /:project_path/snippets" do subject { project_snippets_path(project) } |