From 8460a6fd690f12542b3533726a36bd1cc63facae Mon Sep 17 00:00:00 2001 From: Rachel Fox Date: Fri, 4 Mar 2022 20:39:54 +0000 Subject: [PATCH] use match array instead of eq --- ee/spec/controllers/boards/lists_controller_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ee/spec/controllers/boards/lists_controller_spec.rb b/ee/spec/controllers/boards/lists_controller_spec.rb index 0b24228c0cb29e..b729fdd1a0852b 100644 --- a/ee/spec/controllers/boards/lists_controller_spec.rb +++ b/ee/spec/controllers/boards/lists_controller_spec.rb @@ -86,7 +86,7 @@ def read_board_list(user:, board:) create_board_list user: user, board: board, iteration_id: iteration.id expect(response).to have_gitlab_http_status(:unprocessable_entity) - expect(json_response['errors']).to eq(['Iteration lists not available with your current license']) + expect(json_response['errors']).to match_array(['Iteration lists not available with your current license']) end end end @@ -198,7 +198,7 @@ def read_board_list(user:, board:) create_board_list user: user, board: board, label_id: '' expect(response).to have_gitlab_http_status(:unprocessable_entity) - expect(json_response['errors']).to eq(['Label not found']) + expect(json_response['errors']).to match_array(['Label not found']) end end @@ -209,7 +209,7 @@ def read_board_list(user:, board:) create_board_list user: user, board: board, label_id: label.id expect(response).to have_gitlab_http_status(:unprocessable_entity) - expect(json_response['errors']).to eq(['Label not found']) + expect(json_response['errors']).to match_array(['Label not found']) end end end -- GitLab