Browse Source

Add removed tests

pull/2423/head
Kat 2 years ago committed by kosiakkatrina
parent
commit
6c5f7e523e
  1. 4
      spec/requests/lettings_logs_controller_spec.rb

4
spec/requests/lettings_logs_controller_spec.rb

@ -816,7 +816,7 @@ RSpec.describe LettingsLogsController, type: :request do
end
end
xcontext "when there are more than 1 page of search results" do
context "when there are more than 1 page of search results" do
let(:postcode) { "XX11YY" }
let(:logs) { FactoryBot.create_list(:lettings_log, 30, :completed, owning_organisation: user.organisation, postcode_full: postcode, assigned_to: user) }
let(:log_total_count) { LettingsLog.where(owning_organisation: user.organisation).count }
@ -983,7 +983,7 @@ RSpec.describe LettingsLogsController, type: :request do
end
end
xcontext "when on the second page" do
context "when on the second page" do
before do
get "/lettings-logs?page=2", headers:, params: {}
end

Loading…
Cancel
Save