Browse Source

Fix casing

pull/1561/head
Kat 3 years ago
parent
commit
e9b4ab0f8d
  1. 2
      app/services/imports/sales_logs_import_service.rb
  2. 2
      spec/fixtures/imports/sales_logs/shared_ownership_sales_log.xml
  3. 2
      spec/services/imports/sales_logs_import_service_spec.rb

2
app/services/imports/sales_logs_import_service.rb

@ -170,7 +170,7 @@ module Imports
attributes["ethnicbuy2"] = unsafe_string_as_integer(xml_doc, "P2Eth")
attributes["ethnic_group2"] = ethnic_group(attributes["ethnicbuy2"])
attributes["nationalbuy2"] = unsafe_string_as_integer(xml_doc, "P2Nat")
attributes["buy2living"] = unsafe_string_as_integer(xml_doc, "buy2livein")
attributes["buy2living"] = unsafe_string_as_integer(xml_doc, "BUY2LIVEIN")
attributes["staircasesale"] = unsafe_string_as_integer(xml_doc, "STAIRCASESALE")
attributes["prevtenbuy2"] = unsafe_string_as_integer(xml_doc, "PREVTENBUY2")

2
spec/fixtures/imports/sales_logs/shared_ownership_sales_log.xml vendored

@ -24,7 +24,7 @@
<Q38OtherSale/>
<company>2 No</company>
<LiveInBuyer>1 Yes</LiveInBuyer>
<buy2livein/>
<BUY2LIVEIN/>
<joint>2 No</joint>
<JointMore/>
<PartAPurchaser>2 Yes</PartAPurchaser>

2
spec/services/imports/sales_logs_import_service_spec.rb

@ -269,7 +269,7 @@ RSpec.describe Imports::SalesLogsImportService do
sales_log_xml.at_xpath("//xmlns:Q20Bedrooms").content = "2"
sales_log_xml.at_xpath("//xmlns:P2Eth").content = "2 White: Irish"
sales_log_xml.at_xpath("//xmlns:P2Nat").content = "18 United Kingdom"
sales_log_xml.at_xpath("//xmlns:buy2livein").content = "1"
sales_log_xml.at_xpath("//xmlns:BUY2LIVEIN").content = "1"
end
it "successfully creates a completed shared sale log" do

Loading…
Cancel
Save