Submit social housing lettings and sales data (CORE)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

17 lines
607 B

require "rspec"
describe ImportService do
let(:storage_service) { instance_double(StorageService) }
context "when importing organisations" do
subject(:import_service) { described_class.new(storage_service) }
it "successfully create a new organisation if it does not exist" do
import_service.update_organisations()
# 1. call import with folder name
# 2. check that it calls storage lists files
# 3. check that it calls read file on each files
# 4. create a temporary organisation object
# 5. update/insert (upsert) organisation (settings?)
end
end
end