From 12fe15335fd716100d1b4ad98271b3109a80f1f2 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Thu, 9 Jun 2022 11:34:09 +0100 Subject: [PATCH] Fix heisenspec --- spec/requests/organisations_controller_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/requests/organisations_controller_spec.rb b/spec/requests/organisations_controller_spec.rb index 5c4cef674..8470d50ef 100644 --- a/spec/requests/organisations_controller_spec.rb +++ b/spec/requests/organisations_controller_spec.rb @@ -572,10 +572,10 @@ RSpec.describe OrganisationsController, type: :request do it "shows only logs matching both search and filters" do get "/organisations/#{organisation.id}/logs?search=#{matching_postcode}&status[]=#{matching_status}", headers: headers, params: {} - expect(page).to have_content(log_matching_filter_and_search.id) - expect(page).not_to have_content(log_to_search.id) + expect(page).to have_link(log_matching_filter_and_search.id.to_s) + expect(page).not_to have_link(log_to_search.id.to_s) logs.each do |log| - expect(page).not_to have_content(log.id) + expect(page).not_to have_link(log.id.to_s) end end end