Browse Source

CLDC-4191: Update CSV export tests

the export happens by default, no changes needed here
CLDC-4191-referral-question-csv-xml
Samuel Young 2 weeks ago
parent
commit
dab89171bb
  1. 6
      spec/fixtures/files/lettings_log_csv_export_codes_26.csv
  2. 6
      spec/fixtures/files/lettings_log_csv_export_labels_26.csv
  3. 6
      spec/fixtures/files/lettings_log_csv_export_non_support_codes_26.csv
  4. 6
      spec/fixtures/files/lettings_log_csv_export_non_support_labels_26.csv
  5. 12
      spec/services/csv/lettings_log_csv_service_spec.rb

6
spec/fixtures/files/lettings_log_csv_export_codes_26.csv vendored

File diff suppressed because one or more lines are too long

6
spec/fixtures/files/lettings_log_csv_export_labels_26.csv vendored

File diff suppressed because one or more lines are too long

6
spec/fixtures/files/lettings_log_csv_export_non_support_codes_26.csv vendored

File diff suppressed because one or more lines are too long

6
spec/fixtures/files/lettings_log_csv_export_non_support_labels_26.csv vendored

File diff suppressed because one or more lines are too long

12
spec/services/csv/lettings_log_csv_service_spec.rb

@ -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|

Loading…
Cancel
Save