|
|
|
|
@ -329,8 +329,7 @@ RSpec.describe Csv::LettingsLogCsvService do
|
|
|
|
|
context "when the current user is a support user" do |
|
|
|
|
let(:user) { create(:user, :support, organisation:, email: "s.port@jeemayle.com") } |
|
|
|
|
|
|
|
|
|
# TODO: CLDC-4191 Reinstate this test when we update log export |
|
|
|
|
xit "exports the CSV with all values correct" do |
|
|
|
|
it "exports the CSV with all values correct" do |
|
|
|
|
expected_content = CSV.read("spec/fixtures/files/lettings_log_csv_export_labels_26.csv") |
|
|
|
|
values_to_delete = %w[id] |
|
|
|
|
values_to_delete.each do |attribute| |
|
|
|
|
@ -344,8 +343,7 @@ RSpec.describe Csv::LettingsLogCsvService do
|
|
|
|
|
context "when the current user is not a support user" do |
|
|
|
|
let(:user) { create(:user, :data_provider, organisation:, email: "choreographer@owtluk.com") } |
|
|
|
|
|
|
|
|
|
# TODO: CLDC-4191 Reinstate this test when we update log export |
|
|
|
|
xit "exports the CSV with all values correct" do |
|
|
|
|
it "exports the CSV with all values correct" do |
|
|
|
|
expected_content = CSV.read("spec/fixtures/files/lettings_log_csv_export_non_support_labels_26.csv") |
|
|
|
|
values_to_delete = %w[id] |
|
|
|
|
values_to_delete.each do |attribute| |
|
|
|
|
@ -363,8 +361,7 @@ RSpec.describe Csv::LettingsLogCsvService do
|
|
|
|
|
context "when the current user is a support user" do |
|
|
|
|
let(:user) { create(:user, :support, organisation:, email: "s.port@jeemayle.com") } |
|
|
|
|
|
|
|
|
|
# TODO: CLDC-4191 Reinstate this test when we update log export |
|
|
|
|
xit "exports the CSV with all values correct" do |
|
|
|
|
it "exports the CSV with all values correct" do |
|
|
|
|
expected_content = CSV.read("spec/fixtures/files/lettings_log_csv_export_codes_26.csv") |
|
|
|
|
values_to_delete = %w[id] |
|
|
|
|
values_to_delete.each do |attribute| |
|
|
|
|
@ -378,8 +375,7 @@ RSpec.describe Csv::LettingsLogCsvService do
|
|
|
|
|
context "when the current user is not a support user" do |
|
|
|
|
let(:user) { create(:user, :data_provider, organisation:, email: "choreographer@owtluk.com") } |
|
|
|
|
|
|
|
|
|
# TODO: CLDC-4191 Reinstate this test when we update log export |
|
|
|
|
xit "exports the CSV with all values correct" do |
|
|
|
|
it "exports the CSV with all values correct" do |
|
|
|
|
expected_content = CSV.read("spec/fixtures/files/lettings_log_csv_export_non_support_codes_26.csv") |
|
|
|
|
values_to_delete = %w[id] |
|
|
|
|
values_to_delete.each do |attribute| |
|
|
|
|
|