allow(logger).toreceive(:warn).with(/is not completed/)
allow(logger).toreceive(:warn).with(/is not completed/)
allow(logger).toreceive(:warn).with(/is incomplete but status should be complete/)
allow(logger).toreceive(:warn).with(/is incomplete but status should be complete/)
expect(logger).toreceive(:warn).with(/The following case logs had status discrepancies: \[893ufj2s-lq77-42m4-rty6-ej09gh585uy1, 5ybz29dj-l33t-k1l0-hj86-n4k4ma77xkcd\]/).exactly(1).times
expect(logger).toreceive(:warn).with(/The following case logs had status discrepancies: \[893ufj2s-lq77-42m4-rty6-ej09gh585uy1, 5ybz29dj-l33t-k1l0-hj86-n4k4ma77xkcd\]/).once
case_log_service.create_logs(remote_folder)
case_log_service.create_logs(remote_folder)
end
end
end
end
end
end
context"when importing a specific log"do
context"when importing a specific log"do
@ -112,7 +112,7 @@ RSpec.describe Imports::CaseLogsImportService do
it"does not import the voiddate"do
it"does not import the voiddate"do
allow(logger).toreceive(:warn).with(/is not completed/)
allow(logger).toreceive(:warn).with(/is not completed/)
allow(logger).toreceive(:warn).with(/Case log with old id:#{case_log_id} is incomplete but status should be complete/)
allow(logger).toreceive(:warn).with(/Case log with old id:#{case_log_id} is incomplete but status should be complete/)