From 28e720a1ecce95849ba442363579a6c050f2b5ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Wed, 30 Jun 2021 15:16:58 +0200 Subject: [PATCH] Make sure we use non-existent IDs in campaign test Previously, depending on the database status, it could be possible that the ID of the campaign2 record was exactly 999 and this test could fail. --- spec/system/campaigns_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/system/campaigns_spec.rb b/spec/system/campaigns_spec.rb index 392836abd..60befbc3b 100644 --- a/spec/system/campaigns_spec.rb +++ b/spec/system/campaigns_spec.rb @@ -21,7 +21,7 @@ describe "Email campaigns", :admin do scenario "Do not track erroneous track_ids" do visit root_path(track_id: campaign1.track_id) - visit root_path(track_id: "999") + visit root_path(track_id: Campaign.last.id + 1) visit admin_stats_path click_link campaign1.name