Skip to content

Commit

Permalink
Use match_array to order-insensitively match response
Browse files Browse the repository at this point in the history
  • Loading branch information
coord-e committed Feb 14, 2024
1 parent 72d9049 commit c7dd8f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/requests/api/job_definitions_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c7dd8f6

Please sign in to comment.