Commit 4ad688f6 authored by Markus Koller's avatar Markus Koller

Merge branch 'nicolasdular/speed-up-task-list-spec' into 'master'

Reduce number of records for task list spec

See merge request gitlab-org/gitlab!40323
parents 6a2b9b41 5f86a105
...@@ -5,9 +5,9 @@ require 'spec_helper' ...@@ -5,9 +5,9 @@ require 'spec_helper'
RSpec.describe 'Task Lists' do RSpec.describe 'Task Lists' do
include Warden::Test::Helpers include Warden::Test::Helpers
let(:project) { create(:project, :public, :repository) } let_it_be(:project) { create(:project, :public, :repository) }
let(:user) { create(:user) } let_it_be(:user) { create(:user) }
let(:user2) { create(:user) } let_it_be(:user2) { create(:user) }
let(:markdown) do let(:markdown) do
<<-MARKDOWN.strip_heredoc <<-MARKDOWN.strip_heredoc
...@@ -72,12 +72,12 @@ RSpec.describe 'Task Lists' do ...@@ -72,12 +72,12 @@ RSpec.describe 'Task Lists' do
EOT EOT
end end
before do before(:all) do
Warden.test_mode!
project.add_maintainer(user) project.add_maintainer(user)
project.add_guest(user2) project.add_guest(user2)
end
before do
login_as(user) login_as(user)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment