From c7dd8f63fcb5e66e24dc8d3662ac59de9b244016 Mon Sep 17 00:00:00 2001 From: hiromi-ogawa Date: Thu, 8 Feb 2024 20:17:27 +0900 Subject: [PATCH] Use match_array to order-insensitively match response --- spec/requests/api/job_definitions_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/requests/api/job_definitions_spec.rb b/spec/requests/api/job_definitions_spec.rb index 7baeac26..937c962c 100644 --- a/spec/requests/api/job_definitions_spec.rb +++ b/spec/requests/api/job_definitions_spec.rb @@ -204,7 +204,7 @@ expect(result['name']).to eq(params[:name]) expect(result['description']).to eq(params[:description]) expect(result['script']).to eq(params[:script]) - expect(result['cron']).to eq(params[:cron]) + expect(result['cron']).to match_array(params[:cron]) end context 'an invalid schedule' do