|
|
@ -2261,7 +2261,7 @@ RSpec.describe CaseLog do |
|
|
|
describe "csv download" do |
|
|
|
describe "csv download" do |
|
|
|
let(:csv_export_file) { File.open("spec/fixtures/files/case_logs_download.csv", "r:UTF-8") } |
|
|
|
let(:csv_export_file) { File.open("spec/fixtures/files/case_logs_download.csv", "r:UTF-8") } |
|
|
|
let(:scheme) { FactoryBot.create(:scheme) } |
|
|
|
let(:scheme) { FactoryBot.create(:scheme) } |
|
|
|
let(:location) { FactoryBot.create(:location, scheme:, type_of_unit: 6, postcode: "SE11TE") } |
|
|
|
let(:location) { FactoryBot.create(:location, :export, scheme:, type_of_unit: 6, postcode: "SE11TE") } |
|
|
|
let(:user) { FactoryBot.create(:user, organisation: location.scheme.owning_organisation) } |
|
|
|
let(:user) { FactoryBot.create(:user, organisation: location.scheme.owning_organisation) } |
|
|
|
|
|
|
|
|
|
|
|
before do |
|
|
|
before do |
|
|
|