diff --git a/ee/spec/controllers/boards/lists_controller_spec.rb b/ee/spec/controllers/boards/lists_controller_spec.rb index 0b24228c0cb29e163e759147349c20f362157723..b729fdd1a0852ba3a41b7c07b2df385df449a071 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