Browse Source

rubocop

pull/623/head
JG 3 years ago
parent
commit
27494b3b0a
  1. 8
      spec/requests/case_logs_controller_spec.rb

8
spec/requests/case_logs_controller_spec.rb

@ -760,13 +760,13 @@ RSpec.describe CaseLogsController, type: :request do
expect(csv.count).to eq(2) expect(csv.count).to eq(2)
end end
context "both filter and search applied" do context "when both filter and search applied" do
let!(:case_log) do let!(:case_log) do
FactoryBot.create( FactoryBot.create(
:case_log, :case_log,
:completed, :completed,
postcode_full: "XX1 1TG", postcode_full: "XX1 1TG",
owning_organisation: organisation owning_organisation: organisation,
) )
end end
@ -774,9 +774,9 @@ RSpec.describe CaseLogsController, type: :request do
FactoryBot.create(:case_log, FactoryBot.create(:case_log,
:in_progress, :in_progress,
postcode_full: case_log.postcode_full, postcode_full: case_log.postcode_full,
owning_organisation: organisation owning_organisation: organisation)
)
end end
it "dowloads logs matching both csv and filter logs" do it "dowloads logs matching both csv and filter logs" do
get "/logs?status[]=completed&search=#{case_log.postcode_full}", headers:, params: {} get "/logs?status[]=completed&search=#{case_log.postcode_full}", headers:, params: {}
csv = CSV.parse(response.body) csv = CSV.parse(response.body)

Loading…
Cancel
Save