Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/shared_examples/graphql/mutations/boards_list_create_shared_examples.rb')
-rw-r--r--spec/support/shared_examples/graphql/mutations/boards_list_create_shared_examples.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/shared_examples/graphql/mutations/boards_list_create_shared_examples.rb b/spec/support/shared_examples/graphql/mutations/boards_list_create_shared_examples.rb
index b096a5e17c0..13d2447754c 100644
--- a/spec/support/shared_examples/graphql/mutations/boards_list_create_shared_examples.rb
+++ b/spec/support/shared_examples/graphql/mutations/boards_list_create_shared_examples.rb
@@ -33,6 +33,10 @@ RSpec.shared_examples 'board lists create mutation' do
describe 'backlog list' do
let(:list_create_params) { { backlog: true } }
+ before do
+ board.lists.backlog.delete_all
+ end
+
it 'creates one and only one backlog' do
expect { subject }.to change { board.lists.backlog.count }.by(1)
expect(board.lists.backlog.first.list_type).to eq 'backlog'