From 99b1c2ed79113d2b4c9dcc8b2dd50d1ede6029ec Mon Sep 17 00:00:00 2001 From: David May-Miller Date: Fri, 30 Sep 2022 11:20:56 +0100 Subject: [PATCH] CLDC-1625 Fixed linting error This will want to be undone when sales log searching tests are added --- spec/features/organisation_spec.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/features/organisation_spec.rb b/spec/features/organisation_spec.rb index 623ce7dd0..09d6130e4 100644 --- a/spec/features/organisation_spec.rb +++ b/spec/features/organisation_spec.rb @@ -212,11 +212,10 @@ RSpec.describe "User Features" do context "when viewing sales logs for specific organisation" do let(:first_log) { organisation.sales_logs.first } - let!(:log_to_search) { FactoryBot.create(:sales_log, owning_organisation: user.organisation, managing_organisation_id: organisation.id) } - let!(:other_logs) { FactoryBot.create_list(:sales_log, 4, owning_organisation_id: organisation.id, managing_organisation_id: organisation.id) } let(:number_of_sales_logs) { SalesLog.count } before do + FactoryBot.create_list(:sales_log, 4, owning_organisation_id: organisation.id, managing_organisation_id: organisation.id) visit("/organisations/#{org_id}/sales-logs") end @@ -232,7 +231,7 @@ RSpec.describe "User Features" do end end - it "can filter lettings logs" do + it "can filter sales logs" do expect(page).to have_content("#{number_of_sales_logs} total logs") organisation.sales_logs.map(&:id).each do |sales_log_id| expect(page).to have_link sales_log_id.to_s, href: "/sales-logs/#{sales_log_id}"